seqQuickLook {seqimpute}R Documentation

Numbering NAs and types of gaps among a dataset

Description

seqQuickLook.R is a function aimed at providing a quick overview of the frequency of the NAs and the number and size of the different types of gaps spread in the original dataset OD. The user should run this function before running the main function seqimpute.R in order to identify a judicious choice for the values of np and nf.

Usage

seqQuickLook(OD, k, np = 1, nf = 0)

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 variable numbered from 1 to k.

np

numeric object corresponding to the number of previous observations in the imputation model of the internal gaps (default 1).

nf

numeric object corresponding to the number of future observations in the imputation model of the internal gaps (default 0).

Value

It returns a message containing the MDGapsChart data.frame object that summarizes the number and the size of each type of gaps (Internal Gaps, Initial Gaps, Terminal Gaps, LEFT- hand side SLG, RIGHT-hand side SLG) present among the original dataset.

Author(s)

Andre Berchtold <andre.berchtold@unil.ch>

Examples

data(OD)

seqQuickLook(OD=OD, k=2, np=1, nf=0)


[Package seqimpute version 1.2.1 Index]