est_tot_from_des_joint: helper function to estimate joint totals from survey design...

View source: R/est_tot_ref.R

est_tot_from_des_jointR Documentation

helper function to estimate joint totals from survey design object

Description

helper function to estimate joint totals from survey design object

Usage

est_tot_from_des_joint(form_additive, design_refer)

Arguments

form_additive

a formula with only right hand side additive terms representing joint totals

design_refer

a survey.design object that contains the survey data used to estimate the joint total(s) svydesign

Value

result is 'tidy' data frame, row is unique strata combo

Examples


dstrat <- svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc)
est_tot_from_des_joint(~sch.wide+bothdesign_refer=dstrat)

statsccpr/MultCal2Sim documentation built on Sept. 3, 2022, 12:39 p.m.