STRATENUM {stratvns} | R Documentation |
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)
X |
Stratification Variable |
L |
Number of strata |
cvt |
Target cv |
nhmin |
Mininum sample size by stratum |
STRATENUM
n |
Sample size |
nh |
Sample size by strata |
cv |
coefficient of variation |
Nh |
Strata sizes |
Vh |
Strata variances |
totoptg |
Total global optimal solutions |
tfeasible |
Total feasible solutions |
cputime |
Runtime in seconds |
Leonardo de Lima, Jose Brito, Pedro Gonzalez and Breno Oliveira
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–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)
## End(Not run)