PrepMissingPattern: Sensitivity Analysis for Binary Missing Data

Description Usage Arguments Details Value Examples

View source: R/PrepMissingPattern.R

Description

Given a dataframe Y in which columns represent timepoints and rows represent subjects creates missing data summaries for display using missingPattern.

Usage

1

Arguments

Y

Is an N0 by NT dataframe with each column representing timepoints and rows representing subjects. Individual values Y_ij = 0, when the event of interest has not occured for subject i at time j, Y_ij = 1, when the event of interest has occured for subject i at time j, Y_ij = 2 or NA when the measurement of the event of interest for subject i at time j is missing.

Details

PrepMissingPattern is used in conjunction with missingPattern to produce a simple summary of missing data in a salmb dataframe.

Value

Returns a list with items

Mat

a matrix of frequencies and percentages

tots

a matrix of subtotals

K

the number of timepoints (columns) in the original data

Examples

1
2

salbm documentation built on May 25, 2021, 9:07 a.m.