ard_continuous.survey.design {cardx} | R Documentation |
ARD Continuous Survey Statistics
Description
Returns an ARD of weighted statistics using the {survey}
package.
Usage
## S3 method for class 'survey.design'
ard_continuous(
data,
variables,
by = NULL,
statistic = everything() ~ c("median", "p25", "p75"),
fmt_fn = NULL,
stat_label = NULL,
...
)
Arguments
data |
( |
variables |
( |
by |
( |
statistic |
( |
fmt_fn |
( |
stat_label |
( |
... |
These dots are for future extensions and must be empty. |
Value
an ARD data frame of class 'card'
statistic argument
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.
Examples
data(api, package = "survey")
dclus1 <- survey::svydesign(id = ~dnum, weights = ~pw, data = apiclus1, fpc = ~fpc)
ard_continuous(
data = dclus1,
variables = api00,
by = stype
)