Learn R Programming

lclGWAS (version 1.0.3)

alphaEst:

Description

A method to estimate the baseline survival rate for each time interval for a multivariate frailty model. The estimation is conduced under the null hypothesis, i.e., that there is no fixed effect.

Usage

alphaEst(dtime, delta)

Arguments

dtime
Vector of observed discrete survival times for each sample.
delta
Event indicator vector: 1 indicates observed event, 0 indicates censored.

Value

A list with one object:
alphaEst
Vector of estimates of the baseline survival rates.

Examples

Run this code
# Generate dummy data	
dtime <- c(1, 3, 3, 2, 1, 1, 2, 3, 1)
delta <- c(1, 0, 1, 1, 1, 0, 1, 0, 1)
res   <- alphaEst(dtime, delta) 
res

Run the code above in your browser using DataLab