This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* GAMS code based on the bread grain market model in | |
* Salhofer (1996), “Efficient Income Redistribution for a Small Country Using Optimal Combined Instruments.” | |
* Salhofer, K. 1996. “Efficient Income Redistribution for a Small Country Using Optimal Combined Instruments.” Agricultural Economics 13 (3): 191–99. doi:10.1016/0169-5150(95)01162-5. | |
* The code builds on Salhofer's GAMS example provided in the course "Welfare Economics" | |
* General idea of the optimization model: | |
* Maximizes consumers/taxpayers surplus s.t. a given support level and four policy instruments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
* | |
* This file is an extension of | |
* the long-run production problem, as described in Chapter 5 of | |
* Gilbert and Tower: Introduction to Numerical Simulation for Trade Theory and Policy. | |
* | |
* for download of the original model go to | |
* http://ideas.repec.org/c/uth/gt2013/2012-03.html | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
* --- Small country trading equilibrium | |
* | |
* Reasons for trade in the single country HO model | |
* Differences in good and factor prices and factor intensities | |
* | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
* Howto draw a PPF using the GUSS solver option in GAMS | |
* | |
* This file is an extension of | |
* the long-run production problem, as described in Chapter 5 of | |
* Gilbert and Tower: Introduction to Numerical Simulation for Trade Theory and Policy. | |
* | |
* for download of the original model go to | |
* http://ideas.repec.org/c/uth/gt2013/2012-03.html | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GNUPLOT script to draw CES functions with different parameters | |
# | |
# script based on the implicit function plotting trick from: | |
# http://gnuplot-surprising.blogspot.de/2011/09/assume-three-is-equation-fxygxy-and-we.html | |
# uncomment in case you want to save it to a file | |
#set term png enhanced lw 2 font "Times,18" | |
#set output "ces_elas.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(ggplot2) | |
#data points | |
p <- data.frame(t=seq(-2*pi, 2*pi, 0.1)) | |
#1.. drawing polar rose | |
c <- ggplot(p, aes(x=t, y=cos(3*t))) | |
c + geom_line() + coord_polar() | |
#2.. another one with sine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
* --- Small country trading equilibrium | |
* | |
* Different variants of the same model: | |
* | |
* | |
* (1) explicit trade balance condition [import value = export value] or 'nested' budget constraint [max. income = production value] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ontext | |
PROBLEM STATMENT | |
EV analysis from Hazell-Norton | |
AIM: draw the EV-frontier for the following farm planning problem | |
MODEL 1. EXPECTED PROFIT MAXIMIZATION (farm with fixed land, 4 crops, fixed labour and a rotational constraint) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ontext | |
PROBLEM STATMENT | |
EV analysis from Hazell-Norton | |
ctnd. from ev.gms | |
Extension: find the optimal farm decision based on EUH; having the EV-frontier and assuming a utility function |
OlderNewer