Learn R Programming

hesim (version 0.5.0)

sim_ev: Expected values

Description

Simulate costs and quality-adjusted life-years (QALYs) as a function of simulated state occupancy probabilities.

Usage

sim_qalys(object, utility_model, dr, integrate_method, lys)

sim_costs(object, cost_models, dr, integrate_method)

Arguments

object

A stateprobs object.

utility_model

A single object of class StateVals used to simulate utility.

dr

Discount rate.

integrate_method

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.

lys

If TRUE, then life-years are simulated in addition to QALYs.

cost_models

A list of objects of class StateVals used to simulate costs.

Value

sim_costs() and sim_qalys() return objects of class costs and qalys, respectively.

Details

See vignette("expected-values") for details.