makeDecisionProblem: Construct Decision Problem

Description Usage Arguments Value

Description

Constructs a Decision Problem from a data frame.

Usage

1
makeDecisionProblem(df, state, action, exclude = NULL)

Arguments

df

[data.frame]
Data from which the Decision Problem shall be derived.

state

[character(1L)]
Name of the variable assigning the states of nature.

action

[character(1L)]
Name of the variable assigning the acts to the data frame rows.

exclude

[character]
Variable names that should be excluded from the decision problem. Default is NULL, meaning no variable is excluded.

Value

[DecisionProblem] With entries:

df

The original data frame. State and action variable names have been altered to 'state' and 'action', respectively. Also their levels are now given as integer sequence.

n.alternatives

Number of observations in df

ordinal.information

List of ordinal info for each combination of state and action.

cardinal.information

List of ordinal info for each combination of state and action.

ordinal.vars

Variable names that provided ordinal information.

cardinal.vars

Variable names that were used to extract the cardinal information.


florianfendt/dips documentation built on May 25, 2019, 5:22 p.m.