This function fits a Cox Model to time-to-event data and calculates the z statistic. In the wintime package, this function is used for the EWTR-composite max test (MAX) method.
COMP(n, Time, Delta, cov, trt)
The z-statistic of the treatment effect from the Cox Model fit.
The total number of trial participants.
A m x n matrix of event times (days), where m is the number of events in the hierarchy. Rows should represent events and columns should represent participants. Event rows should be in increasing order of clinical severity.
A m x n matrix of event indicators, where m is the number of events in the hierarchy. Rows should represent events and columns should represent participants. Event rows should be in increasing order of clinical severity.
A n x p matrix of covariate values, where p is the number of covariates. Rows should represent participants and columns should represent covariate values.
A vector of length n containing treatment arm indicators (1 for treatment, 0 for control).