aggrStrata: aggrStrata

View source: R/aggrStrata.R

aggrStrataR Documentation

aggrStrata

Description

Function to aggregate the information from a set of strata

Usage

aggrStrata(strata, nvar, vett, censiti, dominio)

Arguments

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

Details

Be aware that this function is applicable only to strata of a same domain level

Value

a dataframe containing the aggregated strata

Examples

data(beat.example)
vett <- c(rep(1,5),rep(2,5),rep(3,7))
R2BEAT:::aggrStrata(strata,vett,nvar=2,dominio="DOM1",censiti=0)

barcaroli/R2BEAT documentation built on Jan. 9, 2025, 8:09 a.m.