October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health...
Transcript of October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health...
![Page 1: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/1.jpg)
Decision modeling inPetros Pechlivanoglou, PhD
Canadian Centre for Health Economics,
University Toronto ON
October 13, 2017
![Page 2: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/2.jpg)
R Passes SAS in scholarly use
©http://r4stats.com/2016/06/08/r-passes-sas-in-scholarly-use-finally/
![Page 3: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/3.jpg)
Decision modeling softwareThree main approaches
● Specialized decision modeling software
○ TreeAge , Data, Crystal8, Arena etc
● Spreadsheet software
○ Microsoft Excel, Open/Libre Office
● Statistical/ Computer programing software
○ Matlab, R, C++, Python, WinBUGS, etc
![Page 4: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/4.jpg)
![Page 5: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/5.jpg)
![Page 6: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/6.jpg)
The Beginning : Medical Decision Making 2005
![Page 7: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/7.jpg)
Hawkins et al 2005 MDM
![Page 8: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/8.jpg)
![Page 9: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/9.jpg)
![Page 10: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/10.jpg)
![Page 11: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/11.jpg)
![Page 12: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/12.jpg)
![Page 13: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/13.jpg)
Decision Analysis in R for Technologies in Health(DARTH)
F. Alarid-Escudero PhD H. Jalal MD PhD E. Enns PhD
E. Krijkamp PhDc M. Hunink MD P. Pechlivanoglou PhD
![Page 14: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/14.jpg)
![Page 15: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/15.jpg)
![Page 16: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/16.jpg)
Jalal et al. 2017
![Page 17: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/17.jpg)
Softwareused inDecision analysis
Jalal et al. Overview of R in Health
Decision Sciences, MDM, 2017
R
Microsoft Excel SAS Stata
TreeAge
![Page 18: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/18.jpg)
![Page 19: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/19.jpg)
![Page 20: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/20.jpg)
![Page 21: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/21.jpg)
![Page 22: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/22.jpg)
Working Papers
1. Decision Tree Modeling for Health Decision Sciences Using R: A Tutorial
2. Introduction to cohort-based decision analytic modelling using R: a Tutorial
3. Improving performance in decision modeling in health using R
![Page 23: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/23.jpg)
Choosing decision modeling softwareCriteria of decision on software use
● The end user
● The type of question answered
● The capacity of the decision modeler
● The need for transparency/ accountability
● Accessibility/ User-Friendliness
● Incorporating new methods
● Computational complexity / capacity
![Page 24: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/24.jpg)
When to build a decision model in RYou are building a:
● Decision model based on survival data and you want to fit different
parametric distributions and properly take into account uncertainty
● Microsimulation model and/or you want to embed risk predicting
regression equations in the decision model
● State transition model based on Bayesian methods and you want to
integrate BUGS functionality
![Page 25: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/25.jpg)
When to build a decision model in R● A decision model that requires calibration of model parameters
● A model that is too complex to be designed easily in TreeAge or Excel
● You care about execution time and computational efficiency
● You want to embed statistical models and the associated uncertainty
● You want to have a transparent decision model with open access to any
user
![Page 26: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/26.jpg)
Conceptualizing a decision model in R
![Page 27: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/27.jpg)
Conceptualizing a decision model in conventional software
![Page 28: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/28.jpg)
Conceptualizing a decision model in R
![Page 29: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/29.jpg)
Conceptualizing a decision model in RINPUT: Load input data relevant to the decision model
INITIALIZATION: Declare and initialize all variables that will be used to
store information in the decision model. The dimensions of the variables are
defined.
MODEL: The main component of the decision model; here is where the
model outcomes (expected costs, expected outcomes, incremental costs and
effects and incremental cost-effectiveness/net-benefits etc) are estimated.
OUTPUT: Tabular and graphical representation of the findings
![Page 30: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/30.jpg)
Building Decision Models in R
![Page 31: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/31.jpg)
![Page 32: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/32.jpg)
![Page 33: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/33.jpg)
Open Tree
![Page 34: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/34.jpg)
![Page 35: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/35.jpg)
The Decision Tree
![Page 36: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/36.jpg)
![Page 37: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/37.jpg)
![Page 38: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/38.jpg)
![Page 39: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/39.jpg)
![Page 40: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/40.jpg)
![Page 41: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/41.jpg)
![Page 42: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/42.jpg)
Decision trees in R: Example
![Page 43: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/43.jpg)
Example Decision Tree no 2Estimating the cost-effectiveness of three follow-up practices for colorectal cancer after
colorectal cancer treatment (Gray et al, 2011).
● Follow-up in primary care (PC),
● Follow-up in hospital care (HC) or
● Continue routine practice (RP).
Strategies are different on:
● Probability of early detection (ed) vs late detection (ld) of recurrence of
colorectal cancer
● Follow-up costs (C) in UK pounds.
● Differences in early detection rates are associated with life expectancy (LE)
![Page 44: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/44.jpg)
Example Decision Tree no 2
![Page 45: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/45.jpg)
R Session...
![Page 46: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/46.jpg)
Building Markov Models in R
![Page 47: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/47.jpg)
State Transition Cohort ModelsModels where proportions of a cohort occupy states at each moment in time
(e.g. healthy, sick, stable, progressed, dead)
Transition between states with some probability
Transitions occur in cycles (months, years etc)
Each state associated with a cost and a health outcome ($’s, LYs or QALYs)
Markov assumption: no “memory” within states
![Page 48: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/48.jpg)
Building a state transition cohort ModelDetermine health states
Determine transitions
Choose cycle length
Estimate transition probabilities
Estimate state utilities and costs per cycle
Calculate
(Sensitivity analysis)
![Page 49: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/49.jpg)
Markov model of HIV progressionTransition matrix:
State-transition diagram
Drummond, Michael F. Methods for the economic evaluation of health care programmes. Oxford university press, 2005.
![Page 50: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/50.jpg)
Markov TraceNumber or distribution of
individuals at each cycle
![Page 51: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/51.jpg)
Conceptualizing the Markov model in R
![Page 52: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/52.jpg)
Simple state transition model State-transition diagram
![Page 53: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/53.jpg)
Simple state transition model Model input:
p
SPr
: transition probability from S to Pr
p
PrD
: transition probability Pr to D
p
SD
: transition probability S to D
c
S
: cost of being in state S
c
Pr
: cost of being state Pr
e
S
: outcomes associated with state S
e
Pr
: outcomes associated with state Pr
No cost or disutility associated with death
![Page 54: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/54.jpg)
Implementing the state transition model in RAt least two different implementations to build and execute a Markov model:
1. Difference equations setup
2. Matrix setup
![Page 55: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/55.jpg)
Implementing the state transition model in RCreate the state vectors S , Pr and D
that will store the number of people in each state
each cycle until the end of time horizon T
At t=0 the cohort starts at S:
S0 =1; Pr0 = 0; D0 = 0
For t <= T, proportions of the cohort will transition in the following fashion:
St = St-1 - p
SPr
�St-1 - p
SD
�St-1;
Prt = Prt-1 - p
PrD
�Prt-1 + p
SPr
�St-1;
Dt = Dt-1 + p
PrD
�Prt-1 + p
SD
�St-1
![Page 56: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/56.jpg)
Calculating total costs & effectsTotal effectiveness at time t (E
t
)
Total effects (TE):
Total cost at time t (C
t
)
Total costs (TC):
![Page 57: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/57.jpg)
Matrix Implementation of the Markov ModelTransition probability matrix
Vector of cycle’s cost/outcomes
![Page 58: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/58.jpg)
Matrix Implementation of the Markov ModelCreate the t x 3 matrix M
that will store the proportion of the cohort at each state and
cycle:
At t = 0 :
M
0
= [ 1, 0, 0 ]
For t < T :
M
t
=M
t-1
P
![Page 59: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/59.jpg)
Calculating total costs & effects
Total effects (TE):
Total costs (TC):
E =M eTE = ιT E
C =M cTC = ιT CιT : 1 × T vector of ones
![Page 60: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/60.jpg)
R Session...
![Page 61: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/61.jpg)
Probabilistic Decision Models
![Page 62: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/62.jpg)
The ProbabilisticDecision Tree
![Page 63: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/63.jpg)
Inputting data in RInput
: Vector of N realizations from a distribution function of the probability of
an event i in treatment group k for N simulations.
: Vector of N probability realizations from a distribution function of an
event j given an event i in treatment group k for N simulations.
: Vector of N effectiveness realizations associated with experiencing the
combination of events i and j in treatment group k,
:Vector of N cost realizations associated with experiencing the
combination of events i and j in treatment group k
![Page 64: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/64.jpg)
Initialize the vectors TC
k
, TE
k
of size N that will store the expected costs and
effects for each of the N simulations
The expected cost and effectiveness for each of the interventions can be estimated
using a “for” loop that will run the decision tree N times
for n <= N:
Conceptualizing a decision tree
![Page 65: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/65.jpg)
Initialize the vectors TC
k
, TE
k
of size N that will store the expected costs and
effects for each of the N simulations
The expected cost and effectiveness for each of the interventions can be described
in the decision model with one single equation
◦: elementwise multiplication
Conceptualizing a decision tree v.2.0
![Page 66: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/66.jpg)
Real-world Applications of R inDecision models/ EE
![Page 67: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/67.jpg)
![Page 68: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/68.jpg)
Microsimulation example
![Page 69: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/69.jpg)
![Page 70: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/70.jpg)
Markov Modeling example
![Page 71: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/71.jpg)
Assessing the cost-utility of early breast cancer screening for Survivors of Adolescent Hodgkin’s lymphoma using a Discrete Event
Simulation
Jill Furzer, Laura Tessier, Sarah Kratina, Phat Chau, Cecilia Cotton, David Hodgson, Paul Nathan, Peter Coyte,
Petros Pechlivanoglou
![Page 72: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/72.jpg)
![Page 73: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/73.jpg)
https://darth.shinyapps.io/mr_con_app_update/
![Page 74: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/74.jpg)
ConclusionNo software platform is perfect but:
R offers potential for transparency,reproducibility, incorporating model complexity,improved performance, a unified framework, a great educational platformGUI capabilities, which is FREE!
The price to pay: Steep learning curve,Programming skills, Poorer GUI compared to other softwarePoorer documentation
…..but Stay Tuned!!!!
![Page 75: October 13, 2017 Decision modeling in Canadian Centre for ... · Canadian Centre for Health Economics, University Toronto ON October 13, 2017. R Passes SAS ... Introduction to cohort-based](https://reader033.fdocuments.in/reader033/viewer/2022042312/5edada8d09ac2c67fa686a19/html5/thumbnails/75.jpg)
Thank you!!!!