as.fpc | R Documentation |
This function creates an object to store the number of clusters sampled
within each stratum (at each stage of multistage sampling) and the
number of clusters available in the population. It is called by
svydesign
, not directly by the user.
as.fpc(df, strata, ids,pps=FALSE)
df |
A data frame or matrix with population size information |
strata |
A data frame giving strata at each stage |
ids |
A data frame giving cluster ids at each stage |
pps |
if |
The population size information may be specified as the number of clusters in the population or as the proportion of clusters sampled.
An object of class survey_fpc
svydesign
,svyrecvar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.