[R] fitted from plm
max.e.brown at gmail.com
max.e.brown at gmail.com
Thu Oct 21 16:22:26 CEST 2010
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 individuals by comparing my yhat
vector with my y vector in the dataframe, right? (The residuals aren't
stacked in a funny way?)
Thanks.
Max
More information about the R-help
mailing list