samonTable1: Summarizes two treatment groups.

Description Usage Arguments Value Examples

View source: R/samonTable1.R

Description

samonTabmat1 takes a dataset Y and produces simple summary statistics which can be printed with the samontTable1 function.

Usage

1
2
samonTabmat1( Y )
samonTable1( Tabdata, trtlab = "Treatment 1")

Arguments

Y

Data frame or matrix of data. Rows are individual measuremnets and columns represent time-points.

Tabdata

Matrix of summary stats produced by the samonTabmat1 function.

trtlab

Label to place above table.

Value

samonTabmat1 returns an NT by 10 matrix where NT is the number of columns in the input matrix Y. The output matrix contains the columns 1. t the time-point. 2. Number On Study 3. Number Observed 4. Number last seen at time t 5. Proportion last seen (of number on-study) 6. Proportion last seen (of number observed) 7. Number intermittent missing data 8. proportion intermittent missing (of number on-study) 9. mean observed value at time t 10. std observed value at time t

samonTable1 does not return any object.

Examples

1
2
3
4
5
6
7
 # monotone missing
 data("samonPANSS1")
 samonTable1( samonTabmat1( samonPANSS1 ), trtlab = "PANSS Placebo" )

 # non monotone missing
 data("VAS1")
 samonTable1( samonTabmat1( VAS1 ), trtlab = "VAS Placebo" )

samon documentation built on July 8, 2020, 5:50 p.m.

Related to samonTable1 in samon...