subject_specific_intensity_matrices: Calculate the subject specific intensity matrices

View source: R/msfit_subjects.R

subject_specific_intensity_matricesR Documentation

Calculate the subject specific intensity matrices

Description

For each subject, calculate a 3D array containing the states (from, to) in the first two dimension and the times in the third. This is then stored in a 4D array, with the 4th dimension indicating each unique subject.

Usage

subject_specific_intensity_matrices(
  subject_specific_risks,
  baseline_intensities,
  trans
)

Author(s)

Daniel Gomon


hputter/mstate documentation built on July 17, 2025, 2:04 a.m.