-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME.Rmd
68 lines (46 loc) · 2.3 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
output:
github_document:
pandoc_args: --webtex
md_document: default
---
# treeSimR <img src="hexSticker.png" height="139" align="right"/>
[![Build Status](https://travis-ci.org/Health-Economics-in-R/CEdecisiontree.svg?branch=master)](https://travis-ci.org/n8thangreen/treeSimR)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/Health-Economics-in-R/CEdecisiontree?branch=master&svg=true)](https://ci.appveyor.com/project/Hn8thangreen/treeSimR)
[![Coverage status](https://codecov.io/gh/Health-Economics-in-R/CEdecisiontree/branch/master/graph/badge.svg)](https://codecov.io/github/n8thangreen/treeSimR?branch=master)
[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r set-options, echo=FALSE, cache=FALSE}
options(width = 1000)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
## Introduction
An R package for easy, robust forward simulating probability decision trees, calculating cost-effectiveness and probability sensitivity analysis (PSA).
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](https://cran.r-project.org/web/packages/data.tree/vignettes/data.tree.html) and examples [here](https://cran.r-project.org/web/packages/data.tree/vignettes/applications.html) ).
## Installing treeSimR
To install the development version from github:
```{r eval=FALSE}
library(devtools)
install_github("n8thangreen/treeSimR")
```
Then, to load the package, use:
```{r eval=FALSE}
library("treeSimR")
```
See package [Vignettes](https://n8thangreen.github.io/treeSimR/articles/vignette_main.html) 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](https://github.com/n8thangreen/plotCostEffectiveness) package.
## License
GPL-3 ©