runGls: Runs a constrained longitudinal data analysis model for use...

Description Usage Arguments Value Author(s) References See Also Examples

Description

The function SPCDFcontinuous requires an analysis function which estimates the treatment effect and it's standard error for each phase of the study. This function uses the so called cLDA model to analyze the data. In the situation where their are only pre-test and post-test measurements this is roughly equivalent to an analysis of covariance. This function can either be used as is or be used as a model for a user supplied function.

Usage

1
runGls(combData, times = "time")

Arguments

combData

This is the input file data file, it needs to have fields ID which is the patient identifier, time which is the observation time, y the outcome variable, trt a treatment code which is either Placebo or Active

times

This is the time variable. The set of times for each patient needs to be the same(except for some patients times may be missing). If they are different then the runSlopes function might work.

Value

A numerical vector of length 3 which gives the treatment effect, it's standard are and the z-score which is the ratio of the treatment effect to it's standard error. The function SPCDcontinuous will use the number of patients as the degrees of freedom to compute p-values.

Author(s)

David A. Schoenfeld dschoenfeld@mgh.harvard.edu

References

Liang, K. Y. and Zeger, S. (2000). Longitudinal data analysis of continuous and discrete responses for pre-post designs. Sankhya: The Indian Journal of Statistics, Series B 62, 134–148.

See Also

SPCDcontinuous

Examples

1
2
3
4
5
data1=createTestData(times=c(0,5,11),n=c(50,50,50),transition=5,rx1=0,rx2=0)
data1=placeboNonResponder(data1,k=0)
#Example of use of function outside of SPCDcontinous
data1$trt=ifelse(data1$rx==3,'Active','Placebo')
runGls(data1,time='time')

SPCDAnalyze documentation built on May 2, 2019, 4 p.m.