Skip to content

n8thangreen/treeSimR

Repository files navigation

treeSimR

Build Status AppVeyor build status Coverage status experimental

An R package for easy, robust forward simulating probability decision trees, calculating cost-effectiveness and probability sensitivity analysis (PSA).

Introduction

The package currently contains functions to:

  • read-in and check tree object
  • simulate final expected outcomes
  • Monte-Carlo simulate multiple simulations

TODO

  • iteratively collapse expected outcome (from right to left)
  • iteratively collapse chance nodes (from right to left)
  • optimal decision function (iterative from right to left)

The package leans heavily on the data.tree package, (introduction here and examples here ).

Installing treeSimR

To install the development version from github:

library(remotes)
install_github("n8thangreen/treeSimR")

Then, to load the package, use:

library("treeSimR")

See package Vignettes for more details and examples.

For plotting functions (e.g. C-E plane, C-E curve, risk profile (with uncertainty), tornado, spider, …) see the plotCostEffectiveness package.

License

GPL-3 ©

About

🌴↔️💊 Easy, robust forward simulating decision trees, calculating cost-effectiveness and PSA.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages