stratify {simFrame} | R Documentation |
Generic function for stratifying data.
stratify(x, design)
x |
the |
design |
a character, logical or numeric vector specifying the variables (columns) to be used for stratification. |
An object of class "Strata"
.
x = "data.frame", design = "BasicVector"
stratify data
according to the variables (columns) given by design
.
Andreas Alfons
"Strata"
data(eusilcP) strata <- stratify(eusilcP, c("region", "gender")) summary(strata)