get_payoff: Get payoffs corresponding to specified strategies or actions.

View source: R/get_payoff.R

get_payoffR Documentation

Get payoffs corresponding to specified strategies or actions.

Description

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

Usage

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(s)

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


yukiyanai/rgamer documentation built on June 14, 2024, 7:38 p.m.