setPolicyValues: Assign Default Policy Values

Description Usage Arguments Author(s)

View source: R/setPolicyValues.R


By default, HydeNet uses factor levels for policy values in a decision node, assuming the decision node is a factor variable. In cases where the decision node is a numeric variable, HydeNet will first try to assign the first, second, and third quartiles as policy values. setPolicyValues allows the user flexibility in which values are actually used in the decision network. It can also be used to restrict the levels of a factor variable to a subset of all levels. Policy values may also be set in setNode, but setPolicyValues makes it possible to set the values for multiple nodes in one call.


setPolicyValues(network, ...)



A Hyde Network object


arguments named for nodes in the network. The value of each argument will be assigned to the nodePolicyValues element of the HydeNetwork object.


Jarrod Dalton and Benjamin Nutter

HydeNet documentation built on July 8, 2020, 5:15 p.m.