Simulate costs and quality-adjusted life-years (QALYs) as a function of simulated state occupancy probabilities.
sim_qalys(object, utility_model, dr, integrate_method, lys)sim_costs(object, cost_models, dr, integrate_method)
A stateprobs object.
A single object of class StateVals used to simulate utility.
Discount rate.
Method used to integrate state values when computing
weighted length of stay. Options are trapz
for the trapezoid rule,
riemann_left
left for a left Riemann sum, and
riemann_right
right for a right Riemann sum.
If TRUE
, then life-years are simulated in addition to
QALYs.
A list of objects of class StateVals used to simulate costs.
sim_costs()
and sim_qalys()
return objects of class
costs and qalys, respectively.
See vignette("expected-values")
for details.