Description Usage Arguments Value Author(s)
This function produces either a survival or hazard plot.
1 2 3 4 |
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 always be provided. For the individual survival/hazard/cumulative hazard function, the data frame must have one row containing the values of the model covariates corresponding to the individual of interest. For the (sub-)population survival/hazard/cumulative hazard function, the data frame must have as many rows as there are individuals in the (sub-)population of interest. Each row must contain the values of the model covariates of the corresponding individual. |
type |
The plot to produce, either |
t.range |
Time variable range to be considered for plotting. This must be a vector with only two elements: the minimum and maximum of the time range. If |
t.vec |
Vector of time values to be considered for plotting. This could also be a single time. Note you cannot provide both |
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 |
bars |
If |
ylim, ylab, xlab, pch |
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. |
min.dn, min.pr, max.pr |
Allowed minimum and maximum for estimated probabities and densities for survival, hazard and cumulative hazard calculations. |
plot.out |
If |
... |
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.