StateVals
objectcreate_StateVals()
is a generic function for creating an object of class
StateVals
from a fitted statistical model or a stateval_tbl
object.
create_StateVals(object, ...)# S3 method for lm
create_StateVals(
object,
input_data = NULL,
n = 1000,
uncertainty = c("normal", "none"),
...
)
# S3 method for stateval_tbl
create_StateVals(object, hesim_data = NULL, n = 1000, ...)
A model object of the appropriate class.
Further arguments (time_reset
and method
) passed to StateVals$new()
.
An object of class expanded_hesim_data
.
Must be expanded by treatment strategies, patients, and health states.
Number of random observations of the parameters to draw when parameters are fit using a statistical model.
Method determining how parameter uncertainty should be handled. See
documentation in create_params()
.
A hesim_data
object. Only required when object
is of class
stateval_tbl
. See "details".
A StateVals
object.
If object
is a stateval_tbl
, then a hesim_data
object is used
to specify treatment strategies, patients, and/or health states not included as
columns in the table, or, to match patients in the table to groups. Not required if
the table includes one row for each treatment strategy, patient, and health state
combination. Patients are matched to groups by specifying both a patient_id
and a grp_var
column in the patients
table.