View source: R/act_svyciprop.R
act_svyciprop | R Documentation |
A creates a one line dataframe with weighted mean, cluster-adjusted 95% CI, and unweighted n/N observation counts for value of interest for selected variable within a svydesign.
act_svyciprop(x, cond, design, ...)
x |
variable of interest (in quotes) |
cond |
the value for which estimates are desired (in quotes) |
design |
svydesign object containing the variable/value |
... |
arguments passed to svyciprop |
A dataframe providing the variable name, weighted mean proportion of observations taking value of interest, cluster-adjusted 95% CI, and counts as n/N character variable (N is 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_svyciprop("cname", "Los Angeles", design)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.