Re: [R] fitted from plm

2010-10-21 Thread Max Brown
Wow, thanks for the very detailed reply! Max __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, r

[R] R: fitted from plm

2010-10-21 Thread Millo Giovanni
Hi Max. You're welcome. Re your question below, the input order is not always preserved: observations are always reordered by (individual, time) internally, so that the output you get is ordered accordingly. Most of the time, this is also the order you'd input them, but this is not necessarily s

Re: [R] fitted from plm

2010-10-21 Thread max . e . brown
Thanks Giovanni and Achim. Just to confirm - the order of observations in residuals(mymodel) is exactly the same as in the dataframe that I pass to plm, so that I can extract the fitted values for an individual by calculating yhat = y - residuals(mymodel) as you describe, and then pick out indi

Re: [R] fitted from plm

2010-10-20 Thread Millo Giovanni
16 To: max.e.br...@gmail.com Cc: r-h...@stat.math.ethz.ch; yves.croiss...@univ-reunion.fr; Millo Giovanni Subject: Re: [R] fitted from plm On Wed, 20 Oct 2010, max.e.br...@gmail.com wrote: > Hi, > > I am estimating a (fixed-effects) model with plm, for which I would like > to get the fitted value

Re: [R] fitted from plm

2010-10-20 Thread Achim Zeileis
On Wed, 20 Oct 2010, max.e.br...@gmail.com wrote: Hi, I am estimating a (fixed-effects) model with plm, for which I would like to get the fitted values. If I call fitted() on my estimated model, it returns NULL. How do I get the fitted values out of the plm object? I think there is currently

[R] fitted from plm

2010-10-20 Thread max . e . brown
Hi, I am estimating a (fixed-effects) model with plm, for which I would like to get the fitted values. If I call fitted() on my estimated model, it returns NULL. How do I get the fitted values out of the plm object? Thanks. Max __ R-help@r-project.or