View source: R/act_svyciquant_tbl.R
act_svyciquant_tbl | R Documentation |
Similar to act_svyciquant, but able to spit out a dataframe containing estimates for multiple variables. Variables are input as vectors.
act_svyciquant_tbl(variable_vect_name, design_obj, ...)
variable_vect_name |
a vector of variables of interest (in quotes) |
... |
arguments passed to svyciquant |
design |
svydesign object containing the variables/values. Can only take one svydesign. To call multiple svydesigns in parallel, see purrr package or Rtesunate::act_svyciquant_list() |
A mutli-row dataframe providing the variable names, weighted means of observations of interest, cluster-adjusted 95% CIs, and counts of all non-NA values.
using api data from survey package
data(api)
design <- svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc)
act_svyciquant_tbl(c("api00", "snum"), design)
act_svyciquant_tbl(c("api00", "snum"), design, level = 0.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.