Learn R Programming

hesim (version 0.5.0)

stateprobs: State probability object

Description

An object of class stateprobs returned from methods $sim_stateprobs() in model classes.

Arguments

Components

A stateprobs object inherits from data.table and contains the following columns:

sample

A random sample from the PSA.

strategy_id

The treatment strategy ID.

patient_id

The patient ID.

grp_id

The subgroup ID.

state_id

The health state ID.

t

The time at which a state probability is computed.

prob

The probability of being in a given health state.

When simulating individual-level models, the patient_id column is not included as state probabilities are computed by averaging across patients.