alphaEstFam: Estimate the Interval Baseline Survival Rates for the Grouped...

View source: R/alphaEstFam.R

alphaEstFamR 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

groupedSurv documentation built on Sept. 29, 2023, 1:06 a.m.