act_ns_quant: A creates a dataframe showing observation counts used for a...

View source: R/act_ns_quant.R

act_ns_quantR Documentation

A creates a dataframe showing observation counts used for a mean/CI of selected variable within a svydesign (quantitative). Best used in conjunction with Rtesunate::act_rows(). (See act_svyciprop family of functions which combines the two)

Description

A creates a dataframe showing observation counts used for a mean/CI of selected variable within a svydesign (quantitative). Best used in conjunction with Rtesunate::act_rows(). (See act_svyciprop family of functions which combines the two)

Usage

act_ns_quant(x, design)

Arguments

x

variable of interest (in quotes)

design

svydesign object containing the variable/value

Value

A dataframe showing counts of observations used to calculate the mean/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.