sampleDensHaz {Pmisc} | R Documentation |
Take posterior samples of hazard funnctions from an INLA fit
sampleDensHaz(fit, x, n = 1, covariates = c(`(Intercept)` = 1), scale = 1)
fit |
result from inla |
x |
sequence of times |
n |
number of samples |
covariates |
values of covariates to use for computing the hazard |
scale |
scale the hazard (12 converts monthly hazard to yearly) |
matrix or array