View source: R/ard_missing.survey.design.R
ard_missing.survey.design | R Documentation |
Compute Analysis Results Data (ARD) for statistics related to data missingness for survey objects
## S3 method for class 'survey.design'
ard_missing(
data,
variables,
by = NULL,
statistic = everything() ~ c("N_obs", "N_miss", "N_nonmiss", "p_miss", "p_nonmiss",
"N_obs_unweighted", "N_miss_unweighted", "N_nonmiss_unweighted", "p_miss_unweighted",
"p_nonmiss_unweighted"),
fmt_fn = NULL,
stat_label = everything() ~ list(N_obs = "Total N", N_miss = "N Missing", N_nonmiss =
"N not Missing", p_miss = "% Missing", p_nonmiss = "% not Missing",
N_obs_unweighted = "Total N (unweighted)", N_miss_unweighted =
"N Missing (unweighted)", N_nonmiss_unweighted = "N not Missing (unweighted)",
p_miss_unweighted = "% Missing (unweighted)", p_nonmiss_unweighted =
"% not Missing (unweighted)"),
...
)
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'
svy_titanic <- survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq)
ard_missing(svy_titanic, variables = c(Class, Age), by = Survived)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.