seqmissIplot: Plot all the patterns of missing data.

View source: R/plots.R

seqmissIplotR Documentation

Plot all the patterns of missing data.

Description

This function plots all patterns of missing data within sequences, based on the seqIplot function.

Usage

seqmissIplot(data, var = NULL, with.complete = TRUE, void.miss = TRUE, ...)

Arguments

data

Either a data frame containing sequences of a categorical variable, where missing data are coded as NA, or a state sequence object created using the seqdef function.

var

A vector specifying the columns of the dataset that contain the trajectories. Default is NULL, meaning all columns are used.

with.complete

Logical, if TRUE, complete trajectories will be included in the plot.

void.miss

Logical, if TRUE, treats void elements as missing values. Applies only to state sequence objects created with seqdef. Note that the default behavior of seqdef is to treat missing data at the end of sequences as void elements.

...

Additional parameters passed to the seqIplot function.

Details

This function uses seqIplot to visualize all patterns of missing data within sequences. For further customization options, refer to the seqIplot documentation.

Author(s)

Kevin Emery

Examples

# Plot all the patterns of missing data

seqmissIplot(gameadd, var = 1:4)

# Plot all the patterns of missing data discarding
# complete trajectories

seqmissIplot(gameadd, var = 1:4, with.missing = FALSE)

seqimpute documentation built on April 12, 2025, 1:54 a.m.