Copy the code below to install and load the packages needed for the exercise.
install.packages("devtools")
library(devtools)
install_github(repo = "azizka/sampbias")
library(sampbias)
You can find potentially useful R functions for each assignment in the brackets. Get help for all functions with ?FUNCTIONNAME
.
?SamplingBias
and try to change the relevant arguments to improve the results. Summarize and visualize again.