Incerti and Jansen (2021). See Section 2.3 for a mathematical description of a PSM and Section 4.2 for an example in oncology. The mathematical approach used to simulate costs and QALYs from state probabilities is described in Section 2.1.
See Also
The PsmCurves documentation describes the class for the survival models and the StateVals documentation describes the class for the cost and utility models. A PsmCurves
object is typically created using create_PsmCurves(). The PsmCurves documentation provides an example in which the model is parameterized from parameter objects (i.e., without having the patient-level data required to fit a model with R). A longer example is provided in vignette("psm").
Public fields
survival_models: The survival models used to predict survival curves. Must be an object of class PsmCurves.
utility_model: The model for health state utility. Must be an object of class StateVals.
cost_models: The models used to predict costs by health state. Must be a list of objects of class StateVals, where each element of the list represents a different cost category.
n_states: Number of states in the partitioned survival model.
t_: A numeric vector of times at which survival curves were predicted. Determined by the argument t in $sim_curves().
survival_: An object of class survival simulated using sim_survival().
stateprobs_: An object of class stateprobs simulated using $sim_stateprobs().
qalys_: An object of class qalys simulated using $sim_qalys().
costs_: An object of class costs simulated using $sim_costs().
integrate_method: Method used to integrate state values when computing costs or QALYs. Options are trapz for the trapezoid rule, riemann_left for a left Riemann sum, and riemann_right for a right Riemann sum.
lys: If TRUE, then life-years are simulated in addition to QALYs.
Returns
An instance of self with simulated output of class qalys stored in qalys_.
Method sim_costs()
Simulate costs as a function of stateprobs_ and cost_models. See sim_costs() for details.
Usage
Psm$sim_costs(
dr = 0.03,
integrate_method = c("trapz", "riemann_left", "riemann_right")
)
Arguments
dr: Discount rate.
integrate_method: Method used to integrate state values when computing costs or QALYs. Options are trapz for the trapezoid rule, riemann_left for a left Riemann sum, and riemann_right for a right Riemann sum.
Returns
An instance of self with simulated output of class costs stored in costs_.
Method summarize()
Summarize costs and QALYs so that cost-effectiveness analysis can be performed. See summarize_ce().
Usage
Psm$summarize(by_grp = FALSE)
Arguments
by_grp: If TRUE, then costs and QALYs are computed by subgroup. If FALSE, then costs and QALYs are aggregated across all patients (and subgroups).
Method clone()
The objects of this class are cloneable with this method.