calc_expectedValues: Calculate Expected Values for Each Node of Decision Tree

Description Usage Arguments Value See Also Examples

View source: R/calc_expectedValues.R

Description

Takes an object of class costeffectiveness_tree.

Usage

1
2
3
4
5
6
7
calc_expectedValues(osNode)

## Default S3 method:
calc_expectedValues(osNode)

## S3 method for class 'costeffectiveness_tree'
calc_expectedValues(osNode)

Arguments

osNode

Value

osNode

See Also

costeffectiveness_tree, payoff

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
## read-in decision tree
osNode <- costeffectiveness_tree(yaml_tree = "raw data/LTBI_dtree-cost-distns.yaml")
print(osNode, "type", "p", "distn", "mean", "sd")

## calculate a single realisation expected values
osNode <- calc_expectedValues(osNode)
print(osNode, "type", "p", "distn", "mean", "sd", "payoff", "sampled")

## calculate multiple realisation for specific nodes
MonteCarlo_expectedValues(osNode, n=100)

## End(Not run)

n8thangreen/treeSimR documentation built on Feb. 20, 2022, 11:54 a.m.