View source: R/sampleDensHaz.R
sampleDensHaz | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.