View source: R/add-functions.R
get_hazard | R Documentation |
Calculate predicted hazard
get_hazard(object, newdata, ...)
## Default S3 method:
get_hazard(
object,
newdata,
reference = NULL,
ci = TRUE,
type = c("response", "link"),
ci_type = c("default", "delta", "sim"),
time_var = NULL,
se_mult = 2,
...
)
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 |
... |
Further arguments passed to |
reference |
A data frame with number of rows equal to |
ci |
|
type |
Either |
ci_type |
The method by which standard errors/confidence intervals
will be calculated. Default transforms the linear predictor at
respective intervals. |
time_var |
Name of the variable used for the baseline hazard. If
not given, defaults to |
se_mult |
Factor by which standard errors are multiplied for calculating the confidence intervals. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.