STRATENUM {stratvns} | R Documentation |
Enumeration Algorithm
Description
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).
Usage
STRATENUM(X, L, cvt = 0.1, nhmin = 2)
Arguments
X |
Stratification Variable |
L |
Number of strata |
cvt |
Target cv |
nhmin |
Mininum sample size by stratum |
Details
STRATENUM
Value
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 |
Author(s)
Leonardo de Lima, Jose Brito, Pedro Gonzalez and Breno Oliveira
References
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.
Examples
## 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)
[Package stratvns version 1.1 Index]