powered by
Sample size calculation
sample_size( type, err_mean = 2, sd_mean = 10, err_prop = 0.1, p_prop = 0.5, conf_lev = 0.95, incidence = 1, response = 1, pop_correction = "no", pop_size = 1e+06 )
Choose "mean" or "proportion"
Acceptable Error for Mean
Standard deviation for Mean
Acceptable Error for Proportion
Initial proportion estimate for Proportion
Confidence level
Incidence rate (i.e., fraction of valid respondents)
Response rate
Apply correction for population size ("yes","no")
Population size
A list of variables defined in sample_size as an object of class sample_size
See https://radiant-rstats.github.io/docs/design/sample_size.html for an example in Radiant
summary.sample_size to summarize results
summary.sample_size
# NOT RUN { sample_size(type = "mean", err_mean = 2, sd_mean = 10) # }
Run the code above in your browser using DataLab