View source: R/act_row_quant.R
act_row_quant | R Documentation |
Calculates weighted mean and cluster-adjusted confidence interval for quantitative variable in svydesign object
act_row_quant(x, design, ...)
x |
variable of interest (in quotes) |
... |
arguments passed to stats::confint. Most useful if need to change from 95% CI (default) to a different level of confidence; entered as 'level = 0.xx' |
design_object |
svydesign object of interest in functions act_row, act_ns, etc |
Dataframe with one row indicating variable name, survey-weighted mean and confidence interval
using api data from survey package
design <- svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc)
act_row_quant("api00", design)
act_row_quant("api00", design, level = 0.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.