COMP | R Documentation |
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)
n |
The total number of trial participants. |
Time |
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. |
Delta |
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. |
cov |
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. |
trt |
A vector of length n containing treatment arm indicators (1 for treatment, 0 for control). |
A list containing: The z-statistic of the treatment effect from the Cox Model fit, the treatment effect estimate, the variance of the treatment effect estimate, the p-value for treatment effect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.