fit_inla_pw | R Documentation |
Generate survival estimates with a piecewise exponential Cox model (using INLA)
fit_inla_pw(
inla.formula = inla.surv(death_t, death) ~ -1,
data,
cutpoints,
nsim = 100,
...
)
inla.formula |
The formula for PEM which must be an |
data |
A dataframe for survival data with time ( |
cutpoints |
A sequence of cut points for intervals in the baseline hazard |
nsim |
The number of simulations from posteriors; default 100 |
... |
Additional arguments |
INLA object
if (requireNamespace("INLA", quietly = TRUE)) {
data("TA174_FCR", package = "blendR")
head(dat_FCR)
obs_Surv <- fit_inla_pw(data = dat_FCR, cutpoints = seq(0, 180, by = 5))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.