get_2x2_nash_stability: Get 2x2 Nash stability

View source: R/games-2x2.R

get_2x2_nash_stabilityR Documentation

Get 2x2 Nash stability

Description

This function evaluates Nash stability by checking if either player would benefit by switching their action.

Usage

get_2x2_nash_stability(payouts, i)

Arguments

payouts

List of payouts from get_2x2_payouts

i

Index at which to evaluate Nash stability

Details

Get 2x2 Nash equilibrium and first best

Value

Returns a value of 1 (Nash equilibrium), 0 (stable), or -1 (not NE)

Examples

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)

gopalpenny/nitratesgame documentation built on July 8, 2023, 6:10 p.m.