id_attributes( strategy_id, n_strategies, patient_id, n_patients, state_id = NULL, n_states = NULL, transition_id = NULL, n_transitions = NULL, time_id = NULL, time_intervals = NULL, n_times = NULL, sample = NULL, n_samples = NULL, grp_id = NULL, patient_wt = NULL )
A numeric vector of integers denoting the treatment strategy.
A scalar denoting the number of unique treatment strategies.
A numeric vector of integers denoting the patient.
A scalar denoting the number of unique patients.
A numeric vector of integers denoting the health state.
A scalar denoting the number of unique health states.
A numeric vector denoting the health state transition. This is only used for state transition models.
A scalar denoting the number of unique transitions.
A numeric vector of integers denoting a unique time interval.
data.table denoting unique time intervals. Must
contain the columns
time_start is the starting time of an interval and
the stopping time of an interval. Following the survival package,
time intervals are closed on the right and
open on the left (except in the final interval where
time_stop is equal to
A scalar denoting the number of time intervals. Equal to the
number of rows in
A numeric vector of integer denoting the sample from the posterior distribution of the parameters.
A scalar denoting the number of samples.
An optional numeric vector of integers denoting the subgroup.
An optional numeric vector denoting the weight to apply to each patient within a subgroup.
When using the ID variables to index input_mats, the sorting order
should be the same as specified in
expand.hesim_data(); that is,
observations must be sorted by prioritizing: (i)
(iii) the health-related ID variable (either
time_id. When using ID variables are used to index transformed parameter
sample is used for indexing, then observations must be sorted by
(iv) the health-related ID variable, and (v)