act_row: A creates a dataframe with weighted means and cluster...

View source: R/act_row.R

act_rowR Documentation

A creates a dataframe with weighted means and cluster adjusted 95% confidence intervals for specific responses for categorical data in svydesign

Description

A creates a dataframe with weighted means and cluster adjusted 95% confidence intervals for specific responses for categorical data in svydesign

Usage

act_row(x, term, design, ...)

Arguments

x

variable of interest (in quotes)

term

the value for which estimates are desired (in quotes)

design

svydesign object containing the variable/value

...

confidence interval options passed to svyciprop function. See svyciprop documentation for information

Value

A dataframe providing the mean, 95% CI

Examples

using api data from survey package
data(api)
design <- svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc)
act_row("cname", "Los Angeles", design)

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