Jamovi Workflow Examples for Decision Tree and Markov Analysis
ClinicoPath Development Team
2025-10-09
Source:vignettes/06-jamovi-workflow-examples.Rmd
06-jamovi-workflow-examples.RmdOverview
This vignette provides step-by-step workflows for using the generated datasets in jamovi with the ClinicoPath decision analysis modules.
Decision Tree Analysis Workflow
Using: appendicitis_decision_tree.csv
Step 2: Configure Variables
Configure the following variables:
-
Decision Nodes:
treatment_choice -
Probability Variables:
prob_surgery_success,prob_conservative_success -
Cost Variables:
cost_surgery,cost_conservative,cost_complications -
Utility Variables:
utility_success,utility_minor_complications -
Outcome Variables:
clinical_outcome
Step 4: Configure Display Options
Enable the following options:
- ☑ Show Node Shapes
- ☑ Show Probabilities
- ☑ Show Costs
- ☑ Show Utilities
- ☑ Show Node Labels
- ☑ Show Branch Labels
- Color Scheme: Medical Theme
Expected Decision Tree Results
The analysis should produce:
- Decision tree visualization with nodes and branches
-
Expected values table showing:
- Strategy: Surgery vs Conservative
- Expected Cost: ~$12,315 vs ~$7,454
- Expected Utility: ~0.989 vs ~0.895 QALYs
- ICER: ~$51,744 per QALY
- Net Benefit: Varies by WTP threshold
Markov Chain Analysis Workflow
Using: heart_disease_markov.csv
Step 2: Configure Variables
Configure the following variables:
-
Decision Nodes:
management_strategy -
Health States:
management_strategy(or create state variable) -
Transition Probabilities:
prob_asymp_to_symp,prob_symp_to_hf,prob_hf_to_death -
Cost Variables:
cost_asymptomatic,cost_symptomatic,cost_heart_failure -
Utility Variables:
utility_asymptomatic,utility_symptomatic,utility_heart_failure
Expected Markov Results
The analysis should produce:
- Markov Transition Matrix showing probabilities between states
-
Markov Cohort Analysis showing population
distribution over time:
- Year 0: 100% Asymptomatic
- Year 5: 54% Asymptomatic, 24% Symptomatic, 12% Heart Failure, 11% Dead
- Year 20: 9% Asymptomatic, 7% Symptomatic, 16% Heart Failure, 68% Dead
-
Cost-effectiveness results:
- Total Lifetime Cost: ~$120,561
- Total Lifetime QALYs: ~8.39
- Cost per QALY: ~$14,370
- Markov State Transitions plot showing progression over time
Comparing Strategies
Sensitivity Analysis
Interpreting Results
Reporting Results
Example Test Datasets Available
The following datasets are available for practice:
-
basic_decision_data.csv- Simple treatment comparison -
markov_decision_data.csv- Multi-state disease progression -
pharma_decision_data.csv- Drug comparison study -
screening_decision_data.csv- Cancer screening programs -
minimal_test_data.csv- Basic functionality testing -
edge_case_data.csv- Error handling and edge cases -
appendicitis_decision_tree.csv- Acute treatment decision -
heart_disease_markov.csv- Chronic disease management
All datasets are located in: inst/extdata/
Load any of these files in jamovi to practice the analysis workflows.
Workflow Summary
This workflow covers:
- ✓ Data import and preparation
- ✓ Decision tree analysis configuration
- ✓ Markov chain analysis setup
- ✓ Result interpretation and reporting
- ✓ Sensitivity analysis implementation
- ✓ Clinical and policy interpretation
Conclusion
You are now ready to perform sophisticated decision analysis and cost-effectiveness research with jamovi using the ClinicoPath module!
The workflows demonstrated in this vignette provide a systematic approach to:
- Setting up decision tree and Markov chain analyses
- Configuring appropriate variables and parameters
- Interpreting cost-effectiveness results
- Conducting sensitivity analyses
- Reporting findings for clinical and policy applications
Practice with the provided example datasets to build proficiency in these powerful analytical methods.