Skip to content

R for economists (was: [R] Almost Ideal Demand System)

9 messages · Arne Henningsen, Ajay Shah, Mahmoud K. Okasha +5 more

#
Hi,

I did not find any web page about using R in economics and econometrics so 
far. However, this does not mean that there is none (searching with google 
for "R" and "economics" gives many pages about economics and a name like 
Firstname R. Lastname on it ;-)). 
Does anybody in the list does know such a web page?
If not, I will be happy if you, Ajay, could build and maintaine one.

Best wishes,
Arne
On Sunday 15 February 2004 07:31, Ajay Shah wrote:

  
    
#
On Thu, Feb 19, 2004 at 02:26:55PM +0100, Arne Henningsen wrote:
Okay, I made a start, with
      http://www.mayin.org/ajayshah/KB/R/more.html

Tell me what should go into it. :-)
#
Hello,

I know a few papers in economics and econometrics using R. One of them in
the Journal of Applied Econometrics. You may have a look at the following
link:
http://netec.mcc.ac.uk/WoPEc/data/Articles/jaejapmetv:14:y:1999:i:3:p:319-29
.html
or you could download the paper from the R-project site:
http://www.r-project.org/nocvs/papers/Cribari-Neto+Zarkos:1999.pdf

Best regards


----- Original Message -----
From: "Arne Henningsen" <ahenningsen at email.uni-kiel.de>
To: "Ajay Shah" <ajayshah at mayin.org>
Cc: <r-help at stat.math.ethz.ch>
Sent: Thursday, February 19, 2004 3:26 PM
Subject: R for economists (was: [R] Almost Ideal Demand System)
http://www.R-project.org/posting-guide.html
#
On Thu, 19 Feb 2004 16:14:17 +0200 Mahmoud K. Okasha wrote:

            
There was also another paper in the JAE in 2002 about econometrics and
R:

@Article{jae:Racine+Hyndman:2002,
  author    = {Jeff Racine and Rob Hyndman},
  title     = {Using \textsf{R} To Teach Econometrics},
  journal   = {Journal of Applied Econometrics},
  year      = {2002},
  volume    = {17},
  pages     = {175--189}
}

which gave a nice overview of what is (resp. was available at that time)
in R for doing basic econometrics.
Z
#
Arne Henningsen wrote:

            
You can simply search for "econometrics" and "r-project" and you will 
find something.

Thomas P.
#
On Thu, 19 Feb 2004 19:06:08 +0530, Ajay Shah <ajayshah at mayin.org> wrote:
<snip R for economists>
I think the most important thing for economists would be a list of the  
common econometric models and how they are accessed in R, for instance  
packages and the functions within those packages.

An example is what is known as a Tobit model to econometricians, which is  
one type of a survival model (to everybody else!). (This isn't that good  
an example as help.search("tobit") would probably turn up the right  
library.)

If you could produce a table with Econometrics to R translations that  
would be immensely helpful, as a start. I know someone suggested creating  
a facility for 'aliasing' econometrics-speak to R functions, but this got  
shot down for being unwieldy (rightly so, I think).

I'll let you know if I have any useful suggestions.
#
On Thu, Feb 19, 2004 at 04:40:13PM -0000, Simon Cullen wrote:
This sounds like a good idea. It'd be neat to have a TeX document
where "many" mainstream econometrics models are written in
mathematics, and then fragments of R code are shown for the purpose.

In addition, I see rolling-your-own-likelihood-function as being a
very common thing in economics today. So I'd just put a lot of focus
on exposition of R facilities for doing MLE, with functionality
comparable with the maxlik and co libraries of gauss. I am not yet
fluent in R, but my early sense is that maxlik+co of gauss are a bit
ahead of what we have in R.
#
Ajay Shah wrote:

            
You might consider:

- some economics topic areas  and mention packages that would be useful 
within those areas for different kinds of analysis that are commonly 
done. (There are several packages related to time series.)

- economics data sources that are easily accessible from R.

- papers where the analysis is known to have been done with R (and 
mention availability of code and data?)

- teaching material.

- translation of econometrics terminology to R and statistics terminology.

- a list of economic/financial institutions known to be using R.

This topic has been discussed on r-help a few times before, so I think 
once you get a bit more structure set up then you will get lots of 
additional input.

Paul Gilbert
#
Ajay Shah <ajayshah at mayin.org> writes:
Even better would be an Sweave vignette (i.e. actual workable code,
not just displayed fragments).
optim is pretty good for most things -- very comparable to Gauss last
I checked Gauss (a few years back).

best,
-tony