seqmissfplot: Plot the most common patterns of missing data.

View source: R/plots.R

seqmissfplotR Documentation

Plot the most common patterns of missing data.

Description

Plot function that renders the most frequent patterns of missing data. This function is based on the seqfplot function.

Usage

seqmissfplot(data, var = NULL, with.complete = TRUE, ...)

Arguments

data

a data.frame where missing data are coded as NA or a state sequence object built with seqdef function

var

the list of columns containing the trajectories. Default is NULL, i.e. all the columns.

with.complete

a logical stating if complete trajectories should be included or not in the plot

...

parameters to be passed to the seqfplot function

Details

This plot function is based on the seqfplot function. To see which arguments can be changed, see the seqfplot help. In particular, the number of most frequent patterns to be plotted can be changed with the argument idxs. By default, the 10 most frequent patterns are plotted.

Author(s)

Kevin Emery

Examples

# 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)


seqimpute documentation built on May 29, 2024, 4:35 a.m.