solve_seq_fcn: Find Nash equilibria of a sequential-form game with payoffs...

View source: R/solve_seq_fcn.R

solve_seq_fcnR Documentation

Find Nash equilibria of a sequential-form game with payoffs defined by R functions

Description

solve_nfg_fcn() finds the pair of best responses when payoff functions are provided as R functions.

Usage

solve_seq_fcn(
  game,
  cons1 = NULL,
  cons2 = NULL,
  cons_common = NULL,
  precision = 1L,
  quietly = FALSE
)

Arguments

game

A "normal_form" class object created by normal_form().

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.

precision

A natural number specifying the precision of numerical approximation. The value n approximately means that the approximation is correct up to the Nth decimal place. The default value is 1.

quietly

A logical value to determine if the equilibrium will be kept in the returned list without being printed on screen. Default is FALSE.

Value

A list containing the pair of the best response correspondence (NE) and the plot of best response correspondences.

Author(s)

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

See Also

normal_form()


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