model.tables.riskIDM: Extract Probabilities From IDM

model.tables.riskIDMR Documentation

Extract Probabilities From IDM

Description

Extract occupancy probabilities, difference, or ratio between probabilities from an illness death model.

Usage

## S3 method for class 'riskIDM'
model.tables(
  x,
  time = "unique",
  indiv = FALSE,
  state = utils::tail(x$states$name, 1),
  contrast = NULL,
  metric = "difference",
  ...
)

Arguments

time

[numeric vector] time at which the probabilities should be extracted. Can be "unique" to extract at jump times (i.e. non-duplicated risk values).

indiv

[logical] should covariate specific probabilities be extracted?

state

[character] state relative to which the occupancy probabilities should be extracted.

contrast

[character vector] optional argument indicating scenario that are to be compared.

metric

[character] how to compare the probabilities between two scenarios: "difference" (alternative - reference) or "ratio" (alternative / reference).

object

[riskIDM] output of the riskIDM function.


bozenne/butils documentation built on Oct. 14, 2023, 6:19 a.m.