act_svyciquant_tbl: Similar to act_svyciquant, but able to spit out a dataframe...

View source: R/act_svyciquant_tbl.R

act_svyciquant_tblR Documentation

Similar to act_svyciquant, but able to spit out a dataframe containing estimates for multiple variables. Variables are input as vectors.

Description

Similar to act_svyciquant, but able to spit out a dataframe containing estimates for multiple variables. Variables are input as vectors.

Usage

act_svyciquant_tbl(variable_vect_name, design_obj, ...)

Arguments

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()

Value

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.

Examples

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)


deansayre/Rtesunate documentation built on July 25, 2024, 7:22 p.m.