survey_sim | R Documentation |
Simulate one or more survey design
survey_sim(
design = c("NS_11", "SS_11", "SSR_11"),
parasite = "hookworm",
method = "kk",
n_individ = seq(100, 1000, by = 10),
scenario = survey_scenario(parasite),
parameters = survey_parameters(design, parasite, method),
iterations = 1000,
cl = NULL,
output = "summarised",
analysis = "mean",
check_memory = TRUE
)
design |
survey design(s) to use. Ignored if parameters and scenario are specified. |
parasite |
parasite(s) to use. Ignored if parameters and scenario are specified. |
method |
method(s) to use. Ignored if parameters and scenario are specified. |
n_individ |
number of individuals (can be a vector) |
scenario |
a data frame of scenarios (see |
parameters |
a list of parameter sets (see |
iterations |
number of iterations per simulation |
cl |
option to specify either a number of cores or an existing cluster for parallel computation (passed to |
output |
type of output: one of summarised, full or extended |
analysis |
type of ERR/FECRT analysis: one of mean or delta |
check_memory |
should the expected memory allocation be checked before proceeding? Does not apply to output type summarised. |
results <- survey_sim(design="NS_11", n_individ = c(100,200,300,400,500))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.