
The function stratasize
determinates the total size of stratified samples depending on type of allocation and determinated by specified precision.
stratasize(e, Nh, Sh, level = 0.95, type = 'prop')
positive number specifying sampling precision.
vector of population sizes in each stratum.
vector of standard deviation in each stratum.
coverage probability for confidence intervals. Default is level=0.95
.
type of allocation. Default is type='prop'
for proportional, alternative is type='opt'
for optimal.
The function stratasize
returns a value, which is a list consisting of the components
is a list of call components: e
specified precision, Nh
population sizes of every stratum, Sh
standard diviation of every stratum, method
type of allocation, level
coverage probability for confidence intervals.
determinated total sample size.
Kauermann, Goeran/Kuechenhoff, Helmut (2011): Stichproben. Methoden und praktische Umsetzung mit R. Springer.
# NOT RUN {
#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")
# }
Run the code above in your browser using DataLab