Learn R Programming

plac (version 0.1.3)

cum.haz: Calulate the Values of the cumulative Hazard at Fixed Times

Description

Calulate the Values of the cumulative Hazard at Fixed Times

Usage

cum.haz(est, t.eval = c(0.25, 0.75))

Value

a list containing the estiamtes and SEs of Lambda(t) for both conditional apporach and the PLAC estimator.

Arguments

est

an object of the class plac.fit.

t.eval

time points at which the Lambda(t) is evaluated (for both conditional apporach and the PLAC estimator).

Examples

Run this code
dat1 = sim.ltrc(n = 50)$dat
est = PLAC(ltrc.formula = Surv(As, Ys, Ds) ~ Z1 + Z2,
     ltrc.data = dat1, td.type = "none")
H = cum.haz(est, t.eval = seq(0.1, 0.9, 0.1))
H$L
H$se.L

Run the code above in your browser using DataLab