compute_cumu_diff: Calculate difference in cumulative hazards and respective...

compute_cumu_diffR Documentation

Calculate difference in cumulative hazards and respective standard errors

Description

CIs are calculated by sampling coefficients from their posterior and calculating the cumulative hazard difference nsim times. The CI are obtained by the 2.5\

Usage

compute_cumu_diff(d1, d2, model, alpha = 0.05, nsim = 100L)

Arguments

d1

A data set used as newdata in predict.gam

d2

See d1

model

A model object for which a predict method is implemented which returns the design matrix (e.g., mgcv::gam).


adibender/pammtools documentation built on Feb. 27, 2024, 8:40 a.m.