seqMissPatt {seqimpute}R Documentation

Visualizing missing patterns among a dataset

Description

seqMissPatt.R offers a quick visualization of the repeating missing patterns among the dataset especially thanks to the package TraMineR.

Usage

seqMissPatt(OD, k, numbOfMostFreqSeq = 10, pbarw = FALSE, clustNumb = 3)

Arguments

OD

matrix object containing sequences of a variable with missing data (coded as NA).

k

numeric object corresponding to the number of categories of the multinomial variable numbered from 1 to k.

numbOfMostFreqSeq

numeric object defining the number of most frequent sequences TraMineR plots are going to display (default 10).

pbarw

logical object making the width of the bars of the TraMineR plots proportional to the sequence frequency in the dataset if pbarw=TRUE (default FALSE).

clustNumb

numeric object corresponding to the number of clusters used to characterize the original dataset OD (default 3) (min value: 2, max value: 9).

Value

Various plots indexing the missing patterns among the binary matrix of the inputed dataset:

Author(s)

Andre Berchtold <andre.berchtold@unil.ch>

Examples

data(OD)

seqMissPatt(OD=OD, k=2, numbOfMostFreqSeq=5, pbarw=TRUE, clustNumb=3)


[Package seqimpute version 1.2.1 Index]