Description Usage Arguments See Also Examples
Survival or cumulative hazard curves from a nonparametric discrete frailty model chosen by automatic model selection
1 2 |
x |
An object returned by |
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 |
... |
Options to customise the plot, passed to |
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.