stratasize {samplingbook} | R Documentation |
Sample Size Determination for Stratified Sampling
Description
The function stratasize
determinates the total size of stratified samples depending on type of allocation and determinated by specified precision.
Usage
stratasize(e, Nh, Sh, level = 0.95, type = 'prop')
Arguments
e |
positive number specifying sampling precision. |
Nh |
vector of population sizes in each stratum. |
Sh |
vector of standard deviation in each stratum. |
level |
coverage probability for confidence intervals. Default is |
type |
type of allocation. Default is |
Value
The function stratasize
returns a value, which is a list consisting of the components
call |
is a list of call components: |
n |
determinated total sample size. |
Author(s)
Shuai Shao
References
Kauermann, Goeran/Kuechenhoff, Helmut (2011): Stichproben. Methoden und praktische Umsetzung mit R. Springer.
See Also
Examples
#random proportional stratified sample
stratasize(e=0.1, Nh=c(100000,300000,600000), Sh=c(1,2,3))
#random optimal stratified sample
stratasize(e=0.1, Nh=c(100000,300000,600000), Sh=c(1,2,3), type="opt")