sampleDensHaz {Pmisc}R Documentation

Sample hazard functions

Description

Take posterior samples of hazard funnctions from an INLA fit

Usage

sampleDensHaz(fit, x, n = 1, covariates = c(`(Intercept)` = 1), scale = 1)

Arguments

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)

Value

matrix or array


[Package Pmisc version 0.2.6 Index]