Function to construct a node converting values into utilities by interpolation.
utility.conversion.intpol.create(name.node,
node,
x,
u,
names.x = rep(NA, length(x)),
names.u = rep(NA, length(u)),
required = FALSE,
col = "black",
shift.levels = 0)
The function returns the created object of type utility.conversion.intpol1
with the properties specified in the arguments of the function.
name of the node to be constructed as a character string.
value node that is to be converted into a utility node.
numeric vector of values for which the utility is known.
numeric vector of utilities corresponding to the values given in the previous argument x
.
(optional) vector of character strings with names of the components of the numeric vector x
specified above.
Only required to provide access to the values through a named parameter vector.
(optional) vector of character strings with names of the components of the numeric vector u
specified above.
Only required to provide acces through a named parameter vector.
(optional) logical variable indicating if the value of this node is required for aggregation at the next higher level.
If this variable is TRUE
, aggregation at the next higher level is not possible if this node returns NA.
Default value is FALSE
.
(optional) color used for plotting the bounding box of the node in the objective hierarchy.
Default value is "black"
.
(optional) number of hierarchical levels by which the node in the objective hierarchy is shifted to make a branch fit better to other branches.
Default value is 0
.
Peter Reichert <peter.reichert@emeriti.eawag.ch>
Short description of the package:
Reichert, P., Schuwirth, N. and Langhans, S.,
Constructing, evaluating and visualizing value and utility functions for decision support, Environmental Modelling & Software 46, 283-291, 2013.
Textbooks on the use of utility and value functions in decision analysis:
Keeney, R. L. and Raiffa, H. Decisions with Multiple Objectives - Preferences and Value Tradeoffs. John Wiley & Sons, 1976.
Eisenfuehr, F., Weber, M. and Langer, T., Rational Decision Making, Springer, Berlin, 2010.
Print, evaluate and plot the node with
print.utility.conversion.intpol
,
summary.utility.conversion.intpol
,
evaluate.utility.conversion.intpol
and
plot.utility.conversion.intpol
.
Create other conversion nodes with
utility.conversion.parfun.create
.
Create end nodes with
utility.endnode.discrete.create
,
utility.endnode.parfun1d.create
,
utility.endnode.intpol2d.create
,
utility.endnode.parfun1d.create
,
utility.endnode.cond.create
, or
utility.endnode.firstavail.create
.
Create aggregation nodes with
utility.aggregation.create
.