Learn R Programming

lclGWAS (version 1.0.1)

alphaEst: Estimate the Baseline Hazard for Discrete-Time Multivariate Frailty Model for Grouped Survival Data

Description

A method to estimate the baseline hazard for multivariate frailty model

Usage

alphaEst(m, dtime, delta, g)

Arguments

m
A integer to indicate which baseline hazard to estimate within the censoring time.
dtime
A vector contains censored time for each sample.
delta
A event indicator vector.
g
Numerical gene type vector.

Value

A list with one object

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)
g     <- c(0, 1, 1, 1, 2, 2, 0, 0, 0)
res   <- alphaEst(1, dtime, delta, g) 
res

Run the code above in your browser using DataLab