Description Usage Arguments Value Author(s)
This function produces either a survival or hazard plot.
1 2 3 4 5 6 | 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,
pop.name = NULL, pop.min = NULL, pop.max = NULL, pop.bin = NULL,
pop.build = FALSE, pop.grid = 200,
min.dn = 1e-200, min.pr = 1e-200, max.pr = 1, ...)
|
x |
A fitted |
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 |
t.range |
Time variable range to be considered for plotting. If |
intervals |
If |
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 |
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. |
pop.name |
Variable name with respect to which you want to stratify. |
pop.min |
Min. value of interval for the stratification variable. If you would like to use an open interval then do not specify a
value for |
pop.max |
Max. value of interval for the stratification variable. For an open interval do not specify |
pop.bin |
Either 0 or 1. This means |
pop.build |
The default is |
pop.grid |
Default values is 200 and it is only used if |
min.dn, min.pr, max.pr |
Allowed minimum and maximum for estimated probabities and densities for survival, hazard and cumulative hazard calculations. |
... |
Other arguments to pass to plot. |
It produces a plot or set of plots.
Maintainer: Giampiero Marra giampiero.marra@ucl.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.