seqQuickLook: Numbering NAs and types of gaps among a dataset

View source: R/seqQuickLook.R

seqQuickLookR Documentation

Numbering NAs and types of gaps among a dataset

Description

seqQuickLook.R is a function aimed at providing an overview of the number and size of the different types of gaps spread in the original dataset OD.

Usage

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

Arguments

OD

either a data frame containing sequences of a multinomial variable with missing data (coded as NA) or a state sequence object built with the TraMineR package

np

number of previous observations in the imputation model of the internal gaps.

nf

number of future observations in the imputation model of the internal gaps.

Value

It returns a data.frame object that summarizes for each type of gaps (Internal Gaps, Initial Gaps, Terminal Gaps, LEFT- hand side SLG, RIGHT-hand side SLG, Both-hand side SLG), the minimum length, the maximum length, the total number of gaps and the total number of NAs induced.

Author(s)

Andre Berchtold <andre.berchtold@unil.ch>

Examples

data(OD)

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


seqimpute documentation built on March 19, 2024, 3:09 a.m.