powered by
This function enumerates all feasible solutions to the stratification problem and produces the global optimum, applying an integer formulation proposed by Brito et al (2015).
STRATENUM(X, L, cvt = 0.1, nhmin = 2)
Stratification Variable
Number of strata
Target cv
Mininum sample size by stratum
Sample size
Sample size by strata
coefficient of variation
Strata sizes
Strata variances
Total global optimal solutions
Total feasible solutions
Runtime in seconds
STRATENUM
1. Brito, J.A.M., Silva, P.L.N., Semaan, G.S., Maculan, N., 2015. Integer programming formulations applied to optimal allocation in stratified sampling. Survey Methodology 41, 2, 427<U+2013>442.
# NOT RUN { Example1: s<-STRATENUM(U21,L=3,cvt=0.05) Example2: s<-STRATENUM(U15,L=4) Example3: s<-STRATENUM(U1,L=3,nhmin=4) # }
Run the code above in your browser using DataLab