Archive

Posts Tagged ‘R’

Using GAMS, R and LaTeX

I just came across an interesting post by Renger van Nieuwkoop on The Lazy Economist, where he writes about how to use R to produce tables from GAMS model output for use in LaTeX.

Very nice and very useful, indeed!

 

Interfacing GAMS and R

GAMS is perhaps THE programming language for developing and running optimization models. R is an excellent and efficient tool for analysing data, including producing attractive graphs.

A tool for combining the two is provided with GDXRRW. GDXRRW acts as an interface between GAMS and R and offers facilities for the transfer of data between GDX and R and a function to call GAMS from within R.

A presentation by Dirkse et al. gives an introduction to the use of GDXRRW.

 

claimtoken-53514938c8b7c

 

Really a Nontraded Commodity? – Datasets and code now available

05/12/2013 4 comments

Figure 1: Trade network for fresh potatoes.The most successful contribution to this blog is (a little to my own surprise) our analysis of the international potato trade network Really a Nontraded Commodity?

For all those who are interested in what’s behind that work, or who want to take the analysis further, or simply want to know how these graphs have been produced we have now made the matrices of bilateral trade in fresh, frozen, and seed potatoes as well as the R code publicly available.

All data comes with a Creative Commons license and is openly accessible at the zenodo repository.

(Thanks, zenodo, for this great service!)