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 |
design |
see |
method |
see |
level |
see |
df_method |
how |
... |
see |
Details
Written by Makram Talih in 2019.
df_method
: for "default"
, df = degf(design)
; for "NHIS"
, df = nrow(design) - 1
.
To use this function in tabulations, call set_survey()
with the opts = "NCHS"
argument,
or type: options(surveytable.adjust_svyciprop = TRUE)
.
Value
The point estimate of the proportion, with the confidence interval as an attribute.
Examples
set_survey(namcs2019sv, opts = "NCHS")
tab("AGER")
[Package surveytable version 0.9.4 Index]