Skip to contents

Generate survival estimates with a piecewise exponential Cox model (using INLA)

Usage

fit_inla_pw(
  inla.formula = inla.surv(death_t, death) ~ -1,
  data,
  cutpoints,
  nsim = 100,
  ...
)

Arguments

inla.formula

The formula for PEM which must be an inla.surv object

data

A dataframe for survival data with time (death_t) and event (death)

cutpoints

A sequence of cut points for intervals in the baseline hazard

nsim

The number of simulations from posteriors; default 100

...

Additional arguments

Value

INLA object