bri.surv.resid: Compute different Bayesian residuals for survival models...

View source: R/XW.R

bri.surv.residR Documentation

Compute different Bayesian residuals for survival models using INLA

Description

Compute different Bayesian residuals for survival models using INLA

Usage

bri.surv.resid(inla.obj, time, event)

Arguments

inla.obj

an object of class "inla".

time

the follow up time for right censored data,

event

the status indicator, 1=observed event, 0=right censored event

Details

The function supports Weibull model, Expontenial model and Cox proportional hazards model for right censored data. Three types of residuals are obtained: Cox-Snell residual; Martingale residuals; Deviance residuals.

Value

A list of different residuals, and time, event, family information.


julianfaraway/brinla documentation built on April 6, 2023, 2:33 p.m.