summarizeNA | R Documentation |
Summarize missing data patterns.
summarizeNA(
data,
repetition = NULL,
sep = "",
newnames = c("variable", "frequency", "missing.pattern", "n.missing"),
keep.data = TRUE
)
data |
[data.frame] dataset containing the observations. |
repetition |
[formula] Specify the structure of the data when in the long format: the time/repetition variable and the grouping variable, e.g. ~ time|id. When specified the missing data pattern is specific to each variable not present in the formula. |
sep |
[character] character used to separate the missing data indicator (0/1) when naming the missing data patterns. |
newnames |
[character vector of length 4] additional column containing the variable name (only when argument |
keep.data |
[logical] should the indicator of missing data per variable in the original dataset per pattern be output. |
a data frame
autoplot.summarizeNA
for a graphical display.
data(gastricbypassW, package = "LMMstar")
summarizeNA(gastricbypassW)
summarizeNA(gastricbypassW, keep.data = FALSE)
data(gastricbypassL, package = "LMMstar")
summarizeNA(gastricbypassL, repetition = ~time|id)
data(calciumL, package = "LMMstar")
mp <- summarizeNA(calciumL, repetition = ~visit|girl)
plot(mp, variable = "bmd")
summarizeNA(calciumL[,c("visit","girl","bmd")], repetition = ~visit|girl)
data(vasscoresW, package = "LMMstar")
summarizeNA(vasscoresW)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.