Strata-class {simFrame}R Documentation

Class "Strata"

Description

Class containing strata information for a data set.

Objects from the Class

Objects can be created by calls of the form new("Strata", ...) or Strata(...).

Slots

values:
Object of class "integer" giving the stratum number for each observation.
split:
Object of class "list"; each list element contains the indices of the observations belonging to the corresponding stratum.
design:
Object of class "character" giving the variables (columns) defining the strata.
nr:
Object of class "integer" giving the stratum numbers.
legend:
Object of class "data.frame" describing the strata.
size:
Object of class "numeric" giving the stratum sizes.
call:
Object of class "OptCall"; the function call used to stratify the data, or NULL.

Methods

simApply
signature(x = "data.frame", design = "Strata", fun = "function"): apply a function to subsets.
simSapply
signature(x = "data.frame", design = "Strata", fun = "function"): apply a function to subsets.

Author(s)

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

See Also

stratify

Examples

showClass("Strata")

[Package simFrame version 0.1.1 Index]