View source: R/ard_continuous_ci.survey.design.R
ard_continuous_ci.survey.design | R Documentation |
One-sample confidence intervals for continuous variables' means and medians.
Confidence limits are calculated with survey::svymean()
and survey::svyquantile()
.
## S3 method for class 'survey.design'
ard_continuous_ci(
data,
variables,
by = NULL,
method = c("svymean", "svymedian.mean", "svymedian.beta", "svymedian.xlogit",
"svymedian.asin", "svymedian.score"),
conf.level = 0.95,
df = survey::degf(data),
...
)
data |
( |
variables |
( |
by |
( |
method |
( |
conf.level |
(scalar |
df |
( |
... |
arguments passed to |
ARD data frame
data(api, package = "survey")
dclus1 <- survey::svydesign(id = ~dnum, weights = ~pw, data = apiclus1, fpc = ~fpc)
ard_continuous_ci(dclus1, variables = api00)
ard_continuous_ci(dclus1, variables = api00, method = "svymedian.xlogit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.