A package for creating and running cost-effectiveness models.
# install.packages("pak")
pak::pak("PolicyAnalysisInc/openqaly")library(openqaly)
model <- define_model() |>
add_strategy("treatment") |>
add_state("healthy") |>
add_state("dead") |>
add_transition("healthy", "dead", 0.05) |>
add_summary("cost", "healthy", 1000) |>
add_summary("outcome", "healthy", 1)
results <- run_model(model)- Articles — tutorials, analysis guides, diagnostics
- Function reference — full API by topic
- Custom PSM tutorial
- Setting up PSA
- Decision trees
- Supports PSM, Markov, Microsimulation, DES, Custom
- Multiple methods for specifying transition matrices
- Standardized model data format
- VBP/DSA/Scenario/PSA Analyses
- Parameter solving
- Arbitrary object parameters
- Sampling of tables & arbitrary object parameters (bootstrap, custom sampling, etc…)
- Custom model checks
- Embarassingly parallel archictecture
- Modular structure allowing models to be combined
- Comprehensive logging of model evaluation
- Decision-tree functionality
- Cleaner code