View source: R/act_svyciquant.R
act_svyciquant | R Documentation |
A creates a one line dataframe with weighted mean, cluster-adjusted 95% CI, and observation counts for selected variable within a svydesign.
act_svyciquant(x, design, ...)
x |
variable of interest (in quotes) |
design |
svydesign object containing the variable/value |
... |
arguments passed to stats::confint |
A dataframe providing the variable name, weighted mean of a quantitative variable of interest, cluster-adjusted 95% CI, and counts as character variable (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("api00", design)
act_svyciquant("api00", design, level = 0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.