The samplex package offers an interactive Shiny
application to calculate sample sizes under various survey designs.
It includes methods for:
Users can set parameters such as confidence level, margin of error, population variance, average cluster size, intra-cluster correlation, and fixed costs, and receive real-time sample size outputs.
Suppose a public health team wants to estimate the proportion of vaccinated students in rural schools.
The team can:
samplex().The application will calculate the required sample size and number of clusters, and show formulas and summaries accordingly.