Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

wintime (version 0.2.0)

COMP: Run composite analysis

Description

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.

Usage

COMP(n, Time, Delta, cov, trt)

Value

The z-statistic of the treatment effect from the Cox Model fit.

Arguments

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).