View source: R/add-functions.R
Calculate survival probabilities
1 2 3 4 5 6 7 | get_surv_prob2(
object,
newdata,
time_var = NULL,
interval_length = "intlen",
...
)
|
object |
a fitted |
newdata |
A data frame or list containing the values of the model covariates at which predictions
are required. If this is not provided then predictions corresponding to the
original data are returned. If |
time_var |
Name of the variable used for the baseline hazard. If
not given, defaults to |
interval_length |
The variable in newdata containing the interval lengths.
Can be either bare unquoted variable name or character. Defaults to |
... |
Further arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.