Arguments
data
a data.frame or data.table featuring sample data.
hhid
character vector of length 1 specifying variable containing
household ids within slot data.
hhsize
character vector of length 1 specifying variable containing
household sizes within slot data. If NULL, household sizes are
automatically calculated.
pid
character vector of length 1 specifying variable containing
person ids within slot data. If NULL, person ids are automatically
calculated.
weight
character vector of length 1 specifying variable holding
sampling weights within slot data.
strata
character vector of length 1 specifing variable name within
slot data of variable holding information on strata, e.g. regions or
NULL if such variable does not exist.
population
TRUE/FALSE vector of length 1 specifing if the data object is a sample or a population
NULL if such variable does not exist.