View source: R/add-functions.R
get_cumu_hazard | R Documentation |
Calculate cumulative hazard
get_cumu_hazard(
newdata,
object,
ci = TRUE,
ci_type = c("default", "delta", "sim"),
time_var = NULL,
se_mult = 2,
interval_length = "intlen",
nsim = 100L,
...
)
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 |
object |
a fitted |
ci |
|
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. |
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.