act_row_quant: Calculates weighted mean and cluster-adjusted confidence...

View source: R/act_row_quant.R

act_row_quantR Documentation

Calculates weighted mean and cluster-adjusted confidence interval for quantitative variable in svydesign object

Description

Calculates weighted mean and cluster-adjusted confidence interval for quantitative variable in svydesign object

Usage

act_row_quant(x, design, ...)

Arguments

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

Value

Dataframe with one row indicating variable name, survey-weighted mean and confidence interval

Examples

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)



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