Learn R Programming

SpotSampling (version 0.1.0)

Orfs: ORFS method

Description

Select temporal samples with fixed size at each wave using the cube method. It provides optimal time rotation of the selected samples using the systematic sampling method.

Usage

Orfs(pik, EPS = 1e-08, comment = TRUE)

Arguments

pik

a matrix of temporal inclusion probabilities. Columns of pik correspond to the waves, and rows correspond to the units. Inclusion probabilities can be totally unequal.

EPS

a tolerance parameter. Default value is 1e-8.

comment

a comment is written during the execution if comment is TRUE (default value).

Value

a matrix that contains temporal samples. This is the update of pik and contains only 0s and 1s that indicates if a unit is selected or not at each wave.

References

Quenouille, M. H. (1949). Approximate Tests of Correlation in time-Series. Royal Statistical Society, Series B Vol. 11, No. 1 (1949), pp. 68-84.

See Also

SystematicDesign, ReducedSamplecube

Examples

Run this code
# NOT RUN {
## Temporal inclusion probabilities with 3 waves and 4 units ##
pik <- matrix(c(0.6,0.3,0.3,
                0.2,0.4,0.9,
                0.3,0.2,0.5,
                0.9,0.1,0.3), ncol = 3, byrow = TRUE)
## ORFS method ##
Orfs(pik)

# }

Run the code above in your browser using DataLab