Re: [R] plm issues: error for within or random, but not for pooling

2010-02-24 Thread Liviu Andronic
Dear Giovanni Thank you for the quick reply and sorry for not being able to respond in kind: since our last e-mail we decided to change the way we measure the variables, and this took some time. I managed to track down the original issue, I think, to an improperly specified subset vector to the

[R] plm issues: error for within or random, but not for pooling

2010-02-04 Thread Liviu Andronic
Dear all I am working on unbalanced panel data and I can readily fit a pooling model using plm(), but not a within or random model. Reproducing the examples in vignette(plm) and in the AER package I encountered no such issues. ##unfortunately I cannot disclose the data, and it is too big anyway

[R] R: plm issues: error for within or random, but not for pooling

2010-02-04 Thread Millo Giovanni
Dear Liviu, it's difficult to tell without seeing the data. I might guess that you have some completely empty groups about which Tapply complains when doing the time-demeaning, but it would be just a guess. I realize you can't share the data in the present form, but may I suggest you try and

Re: [R] plm Issues

2009-07-13 Thread Damien Moore
Duh! Thanks and good advice. I was using 2.7.2 because it was, until recently, the latest version working with RPy (http://rpy.sourceforge.net/). Also didn't realize plm was still actively developed. Interesting that since plm now correctly handles diff and lag operations, it actually breaks with

Re: [R] plm Issues

2009-07-13 Thread Gabor Grothendieck
The dyn and dynlm packages can handle time series in lm and glm. (dyn can also handle many additional regression functions as well) In the case of dyn just write dyn$lm instead of lm like this: library(dyn) a - ts(c(1, 2, 4)) dyn$lm(a ~ diff(a)) Call: lm(formula = dyn(a ~ diff(a)))

Re: [R] plm Issues

2009-07-11 Thread spencerg
Your script ran for me without error under the following configuration: sessionInfo() R version 2.9.1 (2009-06-26) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United

Re: [R] plm Issues

2009-07-11 Thread milton ruser
The first think one need to do when has a so old version, is update it :-) After, if the problem remain, try get help with the colleagues. best milton On Thu, Jul 9, 2009 at 10:58 AM, Damien Moore damienlmo...@gmail.comwrote: Hi List I'm having difficulty understanding how plm should work

[R] plm Issues

2009-07-09 Thread Damien Moore
Hi List I'm having difficulty understanding how plm should work with dynamic formulas. See the commands and output below on a standard data set. Notice that the first summary(plm(...)) call returns the same result as the second (it shouldn't if it actually uses the lagged variable requested). The