Function to predict the the baseline hazard, frailty density,
linear predictor, or risk for objects of type splinesurv
.
1 2 3 4 5 |
object |
an object of type |
type |
a string specifying the type of prediction. Setting
|
x |
a vector containing the values at which prediction is desired. If
|
marginal |
string specifying whether to plot marginal survivor functions.
If |
newdata |
a data frame in the same format as the original data
containing data for prediction. If cluster membership is not set to
|
iter |
integer, indicating which iteration of the MCMC chain to use. If
|
npost |
number of samples from the posterior to be used for estimating the curve |
fn |
function to be applied to the posterior samples. Defaults to
|
alpha |
level of pointwise confidence bands. Setting |
... |
additional parameters currently ignored |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.