coeftable.survreg: Table of coefficients for survreg model

Description Usage Arguments Value Examples

View source: R/plot-pmtree.R

Description

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.

Usage

1
coeftable.survreg(model, confint = TRUE, digits = 2, intree = FALSE)

Arguments

model

model of class survreg

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

Value

None.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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))
}

model4you documentation built on Jan. 20, 2021, 5:09 p.m.