sampleDensHaz: Sample hazard functions

View source: R/sampleDensHaz.R

sampleDensHazR 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


Pmisc documentation built on Feb. 14, 2024, 3 a.m.