est_tot_from_des_1marg | R Documentation |
helper function to estimate ONE marginal total from a survey design object
est_tot_from_des_1marg(form_1_term_only, design_refer)
form_1_term_only |
a formula with only 1 term on the right hand side representing a marginal total |
design_refer |
a ?survey::design object that contains the survey data used to estimate the marginal total |
result is 'tidy' data frame
dstrat <- svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc) est_tot_from_des_1marg(~sch.wide,design_refer=dstrat) est_tot_from_des_1marg(~both,design_refer=dstrat) lapply(list(~sch.wide,~both),est_tot_from_des_1marg,design_refer=dstrat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.