coeftable.survreg | R Documentation |
This function is mostly useful for plotting a pmtree. The generic plotting does not show the estimate and confidence interval of the scale parameter. This one does.
coeftable.survreg(model, confint = TRUE, digits = 2, intree = FALSE)
model |
model of class |
confint |
should a confidence interval be computed? Default: TRUE |
digits |
integer, used for formating numbers. Default: 2 |
intree |
is the table plotted within a tree? Default: FALSE |
None.
if(require("survival") & require("TH.data")) {
## Load data
data(GBSG2, package = "TH.data")
## Weibull model
bmod <- survreg(Surv(time, cens) ~ horTh, data = GBSG2, model = TRUE)
## Coefficient table
grid.newpage()
coeftable.survreg(bmod)
## partitioned model
tr <- pmtree(bmod)
## plot
plot(tr, terminal_panel = node_pmterminal(tr, plotfun = survreg_plot,
confint = TRUE, coeftable = coeftable.survreg))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.