PrepDescribeTrt: Sensitivity Analysis for Binary Missing Data

Description Usage Arguments Details Value See Also Examples

View source: R/PrepDescriveTrt.R

Description

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

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

PrepDescriveTrt is used in conjunction with describeTrt to produce a simple summary of a salmb dataframe.

Value

PrepDescribeTrt returns a table with 10 columns: 1. t 2. Number On Study 3. Number Observed 4. last seen 5. Proportion last seen (of on-study) 6. Proportion last seen (of observed) 7. inter miss 8. proportion inter missing (of onstudy) 9. mean observed 10. std observed

See Also

salbm, salbmM

Examples

1
2
3
4
5
  data(trt1)

  # switch the 2s to NAs for tables.
  trt1[ trt1 == 2 ] <- NA
  prep1 <- PrepDescribeTrt(trt1)

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

Related to PrepDescribeTrt in salbm...