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.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
Last updated from:bfa2d44016. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 132 | ||
| source / vignettes | OK | 197 | ||
| linux-release | OK | 141 | ||
| macos-release | OK | 173 | ||
| macos-oldrel | OK | 170 | ||
| windows-devel | OK | 79 | ||
| windows-release | OK | 65 | ||
| windows-oldrel | OK | 75 | ||
| wasm-release | OK | 118 |
Exports:%out%calculate_icersdecisionseventpayoffsplot_ceacprob2raterate2probrun_twigstatestwig
Dependencies:abindclicodetoolscpp11doParallelfarverforeachggplot2gluegtableisobanditeratorslabelinglifecyclemagrittrplyrR6RColorBrewerRcppreshape2rlangS7scalesstringistringrvctrsviridisLitewithr
Last update: 2025-01-31
Started: 2025-01-08
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 |
