View source: R/PruneByOutcome.R
PruneByOutcome | R Documentation |
Utility to subset trees by leaf outcome
PruneByOutcome(TREE, outcome, negate = FALSE)
TREE |
an input tree |
outcome |
a string for a variable that can be interpreted as >0 on positive outcome leaves |
negate |
whether the indicator should be negated |
The purpose of this utility is to allow calculation of tree averages conditional on a specified outcome. This has particular usefulness if a tree is to calculate transitions for use in with other models (e.g. ODEs or Markov models)
a pruned tree only containing routes to leaves with positive outcomes
Pete Dodd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.