stratify {simFrame}R Documentation

Stratify data

Description

Generic function for stratifying data.

Usage

stratify(x, design)

Arguments

x the data.frame to be stratified.
design a character, logical or numeric vector specifying the variables (columns) to be used for stratification.

Value

An object of class "Strata".

Author(s)

Andreas Alfons, alfons@statistik.tuwien.ac.at

See Also

Strata

Examples

data(eusilc)
stratify(eusilc, c("region", "gender"))

[Package simFrame version 0.1.1 Index]