hazsurv.plot: Hazard and survival plots

Description Usage Arguments Value Author(s)

View source: R/hazsurv.plot.r

Description

This function produces either a survival or hazard plot.

Usage

1
2
3
4
hazsurv.plot(x, eq, newdata, type = "surv", t.range = NULL, intervals = TRUE, 
             n.sim = 100, prob.lev = 0.05, 
             shade = FALSE, ylim, ylab, xlab, ls = 100, 
             baseline = FALSE, ...)

Arguments

x

A fitted gamlss/gjrm object.

eq

Equation number. This can be ignored for univariate models.

newdata

A data frame or list containing the values of the model covariates at which predictions are required. This must have one row and must be provided.

type

The plot to produce, either "surv", "hazard" or "cumhaz".

t.range

Time variable range to be considered for plotting. If NULL then it is determined automatically based on the observed data.

intervals

If TRUE then intervals are also produced.

n.sim

Number of simulated coefficient vectors from the posterior distribution of the estimated model parameters. This is used for interval calculations.

prob.lev

Overall probability of the left and right tails of the probabilities' distributions used for interval calculations.

shade

If TRUE then it produces shaded regions as confidence bands.

ylim, ylab, xlab

Usual plot arguments.

ls

Length of sequence to use for time variable.

baseline

If baseline is desired; this will set all covariate/smooth effects to zero.

...

Other arguments to pass to plot.

Value

It produces a plot or set of plots.

Author(s)

Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk


egeminiani/GJRM documentation built on Sept. 1, 2020, 6:41 p.m.