Package: twig 1.0.0.0
twig: For Streamlining Decision and Economic Evaluation Models using Grammar of Modeling
Provides tools for building decision and cost-effectiveness analysis models. It enables users to write these models concisely, simulate outcomes—including probabilistic analyses—efficiently using optimized vectorized processes and parallel computing, and produce results. The package employs a Grammar of Modeling approach, inspired by the Grammar of Graphics, to streamline model construction. For an interactive graphical user interface, see 'DecisionTwig' at <https://www.dashlab.ca/projects/decision_twig/>. Comprehensive tutorials and vignettes are available at <https://hjalal.github.io/twig/>.
Authors:
twig_1.0.0.0.tar.gz
twig_1.0.0.0.zip(r-4.5)twig_1.0.0.0.zip(r-4.4)twig_1.0.0.0.zip(r-4.3)
twig_1.0.0.0.tgz(r-4.5-any)twig_1.0.0.0.tgz(r-4.4-any)twig_1.0.0.0.tgz(r-4.3-any)
twig_1.0.0.0.tar.gz(r-4.5-noble)twig_1.0.0.0.tar.gz(r-4.4-noble)
twig_1.0.0.0.tgz(r-4.4-emscripten)twig_1.0.0.0.tgz(r-4.3-emscripten)
twig.pdf |twig.html✨
twig/json (API)
# Install 'twig' in R: |
install.packages('twig', repos = c('https://hjalal.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hjalal/twig/issues
Pkgdown site:https://hjalal.github.io
Last updated 20 days agofrom:30de18f34d. Checks:8 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Jan 31 2025 |
R-4.5-win | OK | Jan 31 2025 |
R-4.5-mac | OK | Jan 31 2025 |
R-4.5-linux | OK | Jan 31 2025 |
R-4.4-win | OK | Jan 31 2025 |
R-4.4-mac | OK | Jan 31 2025 |
R-4.3-win | OK | Jan 31 2025 |
R-4.3-mac | OK | Jan 31 2025 |
Exports:%out%calculate_icersdecisionseventpayoffsplot_ceacprob2raterate2probrun_twigstatestwig
Dependencies:abindclicodetoolscolorspacedoParallelfansifarverforeachggplot2gluegtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigplyrR6RColorBrewerRcppreshape2rlangscalesstringistringrtibbleutf8vctrsviridisLitewithr
A Tutorial for Time Dependent Markov Model
Rendered frommarkov_time_dep.Rmd
usingknitr::rmarkdown
on Jan 31 2025.Last update: 2025-01-31
Started: 2025-01-08
Decision Tree Herpes Virus Encephalopathy
Rendered fromdecision_tree.Rmd
usingknitr::rmarkdown
on Jan 31 2025.Last update: 2025-01-14
Started: 2025-01-08
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Negation of %in% operator | %out% |
Define a method for the '+' operator for 'twig' objects | +.twig_class |
Calculate Incremental Cost-Effectiveness Ratios (ICERs) | calculate_icers |
Add decisions to a twig | decisions |
Add an event layer to a twig object | event |
Add payoffs to a twig object | payoffs |
Plot Cost-Effectiveness Acceptability Curve (CEAC) | plot_ceac |
Convert Probability to Rate | prob2rate |
Convert Rate to Probability | rate2prob |
Run a twig model | run_twig |
Add Markov states to a twig | states |
Create a new twig object | twig |