get_payoff returns the vector of payoffs corresponding to a specified pair of strategies or a set of action profiles.

get_payoff(game, actions, cons1, cons2, cons_common)

Arguments

game

A game defined by one of normal_form(), seq_form(), or extensive_form().

actions

A list of strategies or actions to which the payoffs correspond. Each strategy or action must be defined in the game.

cons1

A named list of parameters contained in game$payoff$payoffs1 that should be treated as constants, if any.

cons2

A named list of parameters contained in game$payoff$payoffs2 that should be treated as constants, if any.

cons_common

A named list of parameters contained in game$payoff$payoffs1 and game$payoff$payoffs2 that should be treated as constants, if any. If cons1 and cons2 are exactly same, you can specify cons_common instead of specifying both cons1 and cons2.

Value

A vector of payoffs.

Author

Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp