nelsonaalen_npdf: Nelson-Aalen estimates of group-specific cumulative hazard...

Description Usage Arguments Value See Also Examples

View source: R/plot.npdf.R

Description

Nelson-Aalen estimates of group-specific cumulative hazard from a nonparametric discrete frailty model

Usage

1

Arguments

x

A fitted nonparametric discrete frailty model, as returned by npdf_cox with estK=FALSE.

Value

A list of objects of length equal to the number of groups in the data. Each component is a list, equivalent to the output of survfit called for the corresponding group with type="fh", but with two additional components:

y0: -log of the survival estimate

sfun0: a step function for y0 in terms of time, estimated using stepfun.

See Also

plot.nelsonaalen_npdf, plot.npdf.

Examples

1
2
3
x = npdf_cox( Surv(time, status) ~ x, groups=family, data=weibdata2030, K = 2,
               estK=FALSE, eps_conv=10^-4)
object = nelsonaalen_npdf( x )

fgaspe04/discfrail documentation built on May 17, 2019, 7:05 p.m.