powered by
The function stratasamp calculates the sample size for each stratum depending on type of allocation.
stratasamp
stratasamp(n, Nh, Sh = NULL, Ch = NULL, type = 'prop')
positive integer specifying sampling size.
vector of population sizes of each stratum.
vector of standard deviation in each stratum.
vector of cost for a sample in each stratum.
type of allocation. Default is type='prop' for proportional, alternatives are type='opt' for optimal and type='costopt' for cost-optimal.
type='prop'
type='opt'
type='costopt'
The function stratasamp returns a matrix, which lists the strata and the sizes of observation depending on type of allocation.
Kauermann, Goeran/Kuechenhoff, Helmut (2010): Stichproben. Methoden und praktische Umsetzung mit R. Springer.
stratamean, stratasize, sample.size.mean
stratamean
stratasize
sample.size.mean
# NOT RUN { #random proportional stratified sample stratasamp(n=500, Nh=c(5234,2586,649,157)) stratasamp(n=500, Nh=c(5234,2586,649,157), Sh=c(251,1165,8035,24725), type='opt') # }
Run the code above in your browser using DataLab