plot.npdflist function

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

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

## 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.

Examples

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"))

See Also

plot.npdf

  • Maintainer: Francesca Gasperoni
  • License: GPL-3
  • Last published: 2019-03-13