View source: R/ard_continuous.survey.design.R
ard_continuous.survey.design | R Documentation |
Returns an ARD of weighted statistics using the {survey}
package.
## S3 method for class 'survey.design'
ard_continuous(
data,
variables,
by = NULL,
statistic = everything() ~ c("median", "p25", "p75"),
fmt_fn = NULL,
stat_label = NULL,
...
)
data |
( |
variables |
( |
by |
( |
statistic |
( |
fmt_fn |
( |
stat_label |
( |
... |
These dots are for future extensions and must be empty. |
an ARD data frame of class 'card'
The following statistics are available:
'mean', 'median', 'min', 'max', 'sum', 'var', 'sd', 'mean.std.error', 'deff', 'p##',
where 'p##' is are the percentiles and ##
is an integer between 0 and 100.
data(api, package = "survey")
dclus1 <- survey::svydesign(id = ~dnum, weights = ~pw, data = apiclus1, fpc = ~fpc)
ard_continuous(
data = dclus1,
variables = api00,
by = stype
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.