plot.npdflist: Survival or cumulative hazard curves from a nonparametric...

Description Usage Arguments See Also Examples

Description

Survival or cumulative hazard curves from a nonparametric discrete frailty model chosen by automatic model selection

Usage

1
2
## S3 method for class 'npdflist'
plot(x, K = NULL, ...)

Arguments

x

An object returned by npdf_cox with estK=TRUE, containing a list of fitted nonparametric discrete frailty models

K

The number of latent populations which identifies the specific model to plot estimates from. By default this is the model selected by the criterion specified when calling npdf_cox.

...

Options to customise the plot, passed to plot.npdf. See plot.npdf for a description of these.

See Also

plot.npdf

Examples

1
2
3
4
5
6
7
8
result = npdf_cox( Surv(time, status) ~ x, groups = family, data = weibdata2030,
                   K = 2, eps_conv=10^-4)
plot( result, K = 2 )
plot( result, type = "na" )
plot( result, type = "na", cols=ifelse(result$belonging==2, "purple", "black"),
     na_opts = list(xlim=c(0,200), ylim=c(0,2),
                    xlab="Follow-up days",
                    ylab="Nelson-Aalen estimate"))

discfrail documentation built on May 2, 2019, 9:58 a.m.