check_game_dynamics: Check game dynamics (NOT WORKING)

Description Usage Arguments Details Value Examples

View source: R/game_params.R

Description

Check the basic game dynamics, particularly in cases where zRange=0 and the first best and nash outcomes are the same.

Usage

1
check_game_dynamics(params, text_results = TRUE, aquifer_type = NULL)

Arguments

params

game parameters

text_results

logical value determining if results are returned as text or a tibble

aquifer_type

"confined" or "unconfined", or NULL – in which case check_params will determine the type

Details

In a number of situations, the genevois game does nothing interesting: both players pump at their entire demand, the first best is equivalent to the nash equilibrium, and there are no advantages or disadvantages to signing a treaty. This function helps us better understand why this is the case.

For any interesting dynamics to arise from the game, the First Best has to be different (better) than the Nash Equilibrium. This occurs when players forgo pumping and supply their water from another source, which can only occur if the other source is less expensive than pumping. In other words, pumping for at least one of the players has to be great enough that the cost of pumping is greater than the cost of alternative supply. If this is not the case, then the players cannot do any better working together than they could on their own.

Value

Either (1) a text description of the dynamics (if text_results==TRUE) or (2) a table containing the following values:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library(magrittr)

# Table output
check_game_dynamics(example_params_unconfined,text_results = FALSE)
example_params_unconfined %>% dplyr::mutate(Qs=1,Qf=1) %>% check_game_dynamics(text_results = FALSE)

# Text output
check_game_dynamics(example_params_unconfined) %>% cat()
example_params_unconfined %>% dplyr::mutate(Qs=1,Qf=1) %>% check_game_dynamics() %>% cat()

## End(Not run)

gopalpenny/genevoisgame documentation built on Sept. 9, 2020, 1:46 a.m.