aggrStrata | R Documentation |
Function to aggregate the information from a set of strata
aggrStrata(strata, nvar, vett, censiti, dominio)
strata |
name of the dataframe containing the strata to be aggregated. |
nvar |
number of target variables Y |
vett |
vector of integers of the same length of the dimension of the 'strata' dataframe indicating how the strata must be aggregated. |
censiti |
flag indicating if the strata are take-all (=1) or not (=0) |
dominio |
variable in the strata indicating the domain level |
Be aware that this function is applicable only to strata of a same domain level
a dataframe containing the aggregated strata
data(beat.example)
vett <- c(rep(1,5),rep(2,5),rep(3,7))
R2BEAT:::aggrStrata(strata,vett,nvar=2,dominio="DOM1",censiti=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.