.n.strata.less.than.max | R Documentation |
Intended only to be called within stratify
, not as a standalone function
.n.strata.less.than.max(n_strata, data_interest, variables, idvar)
n_strata |
integer, a number of strata in which to divide to cluster population |
data_interest |
data.frame, a data.frame object with the population of interest (rows are observations) |
variables |
character, provide a character vector of the names of stratifying variables (from population data frame) |
idvar |
character, provide a character vector of the name of the ID variable (from population data frame) |
The function returns a boolean value indicating whether the number of observations with non-missing variables of interests exceeds 1 plus the number of strata requested
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.