svyciprop_adjusted {surveytable}R Documentation

Confidence intervals for proportions, adjusted for degrees of freedom

Description

A version of survey::svyciprop() that adjusts for the degrees of freedom when method = "beta".

Usage

svyciprop_adjusted(
  formula,
  design,
  method = c("logit", "likelihood", "asin", "beta", "mean", "xlogit"),
  level = 0.95,
  df_method,
  ...
)

Arguments

formula

see survey::svyciprop().

design

see survey::svyciprop().

method

see survey::svyciprop().

level

see survey::svyciprop().

df_method

how df should be calculated: "default" or "NHIS".

...

see survey::svyciprop().

df_method: for "default", df = degf(design); for "NHIS", df = nrow(design) - 1.

Details

Written by Makram Talih in 2019.

To use this function in tabulations, type: options(surveytable.adjust_svyciprop = TRUE).

Value

The point estimate of the proportion, with the confidence interval as an attribute.

Examples

set_survey(namcs2019sv)
options(surveytable.adjust_svyciprop = TRUE)
tab("AGER")
options(surveytable.adjust_svyciprop = FALSE)
tab("AGER")

[Package surveytable version 0.9.2 Index]