alphaEstFam | R Documentation |
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.
alphaEstFam(gtime, delta)
gtime |
Vector of observed survival times for each sample. |
delta |
Vector of event indicators for each sample: 1 indicates observed event, 0 indicates censored. |
Vector of estimates of the baseline survival rates for each time interval.
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.