makeTfuns: Make functions to evaluate tree

View source: R/makeTfuns.R

makeTfunsR Documentation

Make functions to evaluate tree

Description

This function prepares functions that evaluate the strings generated by getAQ. The default quantities for mean calculation over tree are 'cost' and 'qol', but others can be specified and will work as long as these variables are defined at all nodes of the tree.

Usage

makeTfuns(node, qnt = c("cost", "qol"))

Arguments

node

a data.tree object that must contain a probability field p

qnt

Quantity

Value

A list of functions

Author(s)

Pete Dodd


petedodd/HEdtree documentation built on Dec. 5, 2022, 6:22 a.m.