seqmissfplot | R Documentation |
This function plots the most frequent patterns of missing data, based on the seqfplot function.
seqmissfplot(data, var = NULL, with.complete = TRUE, void.miss = TRUE, ...)
data |
Either a data frame containing sequences of a categorical
variable, where missing data are coded as |
var |
A vector specifying the columns of the dataset
that contain the trajectories. Default is |
with.complete |
Logical, if |
void.miss |
Logical, if |
... |
Additional parameters passed to the seqfplot function. |
This plot function is based on the seqfplot function, allowing users to visualize patterns of missing data within sequences. For details on additional customizable arguments, see the seqfplot documentation.
By default, this function plots the 10 most frequent patterns. The number
of patterns to be plotted can be adjusted using the idxs
argument
in seqfplot
.
Kevin Emery
# Plot the 10 most common patterns of missing data
seqmissfplot(gameadd, var = 1:4)
# Plot the 10 most common patterns of missing data discarding
# complete trajectories
seqmissfplot(gameadd, var = 1:4, with.missing = FALSE)
# Plot only the 5 most common patterns of missing data discarding
# complete trajectories
seqmissfplot(gameadd, var = 1:4, with.missing = FALSE, idxs = 1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.