alphaEstFam {groupedSurv} | R Documentation |
Estimate the Interval Baseline Survival Rates for the Grouped Failure Time Model
Description
A method to estimate the baseline survival rate for each time interval for a grouped failure time model. The estimation is conducted under the null hypothesis, i.e., that there is no effect from the variable of interest, and is naive to family structure.
Usage
alphaEstFam(gtime, delta)
Arguments
gtime |
Vector of observed survival times for each sample. |
delta |
Vector of event indicators for each sample: 1 indicates observed event, 0 indicates censored. |
Value
Vector of estimates of the baseline survival rates for each time interval.
Examples
# Generate dummy data
gtime <- c(1, 3, 3, 2, 1, 1, 2, 3, 1)
delta <- c(1, 0, 1, 1, 1, 0, 1, 0, 1)
#res <- alphaEstFam(gtime, delta)
#res
[Package groupedSurv version 1.0.5.1 Index]