get_2x2_nash_stability | R Documentation |
This function evaluates Nash stability by checking if either player would benefit by switching their action.
get_2x2_nash_stability(payouts, i)
payouts |
List of payouts from get_2x2_payouts |
i |
Index at which to evaluate Nash stability |
Get 2x2 Nash equilibrium and first best
Returns a value of 1 (Nash equilibrium), 0 (stable), or -1 (not NE)
payouts <- get_2x2_payouts(3, 3, Cs = 2, Cd = 3, TRUE)
payouts <- get_2x2_payouts(3, 3, Cs = 2, Cd = 3)
## Not run:
get_2x2_nash_stability(payouts, 4)
get_2x2_nash_stability(payouts, 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.