Learn R Programming

hesim (version 0.4.1)

CtstmTrans: An R6 base class for continuous time state transition models

Description

A non-exported base class for continuous time state transition models containing methods that can be used to summarize fitted multi-state models.

Arguments

Format

An R6::R6Class object.

Methods

Public methods

Method hazard()

Predict the hazard functions for each health state transition.

Usage

CtstmTrans$hazard(t)

Arguments

t

A numeric vector of times.

Returns

A data.table with columns trans (the transition number), sample, strategy_id, grp_id, t, and hazard.

Method cumhazard()

Predict the cumulative hazard functions for each health state transition.

Usage

CtstmTrans$cumhazard(t)

Arguments

t

A numeric vector of times.

Returns

A data.table with columns trans, sample, strategy_id, grp_id, t, and hazard.

Method clone()

The objects of this class are cloneable with this method.

Usage

CtstmTrans$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

create_IndivCtstmTrans(), IndivCtstmTrans