Learn R Programming

hesim (version 0.5.0)

tparams_mean: Predicted means

Description

Create a list containing means predicted from a statistical model.

Usage

tparams_mean(value, ...)

Arguments

value

Matrix of samples from the distribution of the mean. Columns denote random samples and rows denote means for different observations.

...

Arguments to pass to id_attributes. Each row in value must be a prediction for a strategy_id, patient_id, state_id, and optionally time_id combination.

Value

An object of class tparams_mean, which is a list containing value, n_samples, and the ID attributes passed to id_attributes.

See Also

tparams

Examples

Run this code
# NOT RUN {
tparams_mean(value = matrix(1:8, nrow = 4),
             strategy_id = rep(1:2, each = 2),
             n_strategies = 2,
             patient_id = rep(1, 4),
             n_patients = 1,
             state_id = rep(1:2, times = 2),
             n_states = 2)

# }

Run the code above in your browser using DataLab