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:Hawre Jalal [aut, cre]

twig_1.0.0.0.tar.gz
twig_1.0.0.0.zip(r-4.7-any)twig_1.0.0.0.zip(r-4.6-any)twig_1.0.0.0.zip(r-4.5-any)
twig_1.0.0.0.tgz(r-4.6-any)twig_1.0.0.0.tgz(r-4.5-any)
twig_1.0.0.0.tar.gz(r-4.7-any)twig_1.0.0.0.tar.gz(r-4.6-any)
twig_1.0.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
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/docs site:https://hjalal.github.io

On CRAN:

Conda:

5.33 score 8 stars 27 scripts 222 downloads 11 exports 28 dependencies

Last updated from:bfa2d44016. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK132
source / vignettesOK197
linux-releaseOK141
macos-releaseOK173
macos-oldrelOK170
windows-develOK79
windows-releaseOK65
windows-oldrelOK75
wasm-releaseOK118

Exports:%out%calculate_icersdecisionseventpayoffsplot_ceacprob2raterate2probrun_twigstatestwig

Dependencies:abindclicodetoolscpp11doParallelfarverforeachggplot2gluegtableisobanditeratorslabelinglifecyclemagrittrplyrR6RColorBrewerRcppreshape2rlangS7scalesstringistringrvctrsviridisLitewithr

A Tutorial for Time Dependent Markov Model
Twig | model definition | DecisionTwig | Probability and Payoff Functions | Probability of recovery (pRecover) | Using Logical Conditions in R | Probability of getting sick (pGetSick) | Probability of progressing (pProgress) | Probability of dying (pDie) | Cost | Utility | Running the twig | Parallelization | Incremental Cost-Effectiveness Ratio (ICER) | Cost-Effectiveness Acceptibility Curve (CEAC) | Summary

Last update: 2025-01-31
Started: 2025-01-08

Decision Tree Herpes Virus Encephalopathy
twig | twig model definition | DecisionTwig | Model parameters | Functions | Probability of death | Probability of complications | Probability of HVE | Cost function | utility | Running the twig | Incremental Cost-Effectiveness Ratio (ICER) | Summary

Last update: 2025-01-14
Started: 2025-01-08