STRATENUM: Enumeration Algorithm

Description Usage Arguments Details Value Author(s) References Examples

View source: R/STRATENUM.R

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

1
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

1
2
3
4
5
6
7
8
9
## 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)

stratvns documentation built on July 9, 2020, 5:10 p.m.

Related to STRATENUM in stratvns...