adjusted.LR: Adjusted Log-Rank Test
Description
Performs an adjusted log-rank test considering weights.
Usage
adjusted.LR(times, failures, variable, weights = NULL)
Value
A list containing the test statistic and p-value.
Arguments
- times
A numeric vector of survival times.
- failures
A binary vector indicating event occurrence.
- variable
A numeric binary variable (0 and 1) indicating group membership.
- weights
A numeric vector of weights.