View on GitHub


An R package to compute sample sizes under complex surveys

Download this project as a .zip file Download this project as a tar.gz file


An R package to compute proper sample sizes under complex sampling designs

This is the version control site for the samplesize4surveys package. This software allows you to compute the required sample size for estimation of totals, means, proportions and regression coefficients under complex sampling designs. It focuses on complex surveys for impact evaluation of public policies and surveys to account causal inferences.


First, you need to install the devtools R package


Then load the devtools R package


Finnaly type



This package is maintained by Andrés Gutiérrez. Current version includes contributions from Natalia Arteaga.

Support or Contact

Having trouble with samplesize4surveys? Check out the documentation or contact support. Comments, amends, and critics are very welcome. This is the CRAN site of the last stable version of the package.