GenerateStrata: [internal] Generate stratum numbers along a given vector.

Description Usage Arguments Value Note

Description

[internal] Generate stratum numbers along a given vector.

Usage

1
.GenerateStrata(geo.group, group.ratios)

Arguments

geo.group

(integer vector of length equal to number of geos) a vector of geo group numbers (may be NAs).

group.ratios

(integer vector of length equal to number of geo groups) vector of ratios of the sizes of each group.

Value

An integer vector of the same length as 'geo.group', with the corresponding stratum numbers. '0' signifies a geo that is excluded from the set. Otherwise the numbers identify the strata. There are no NAs.

Note

For internal use; no checking of arguments is done.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.