Hi R-helpers:
I have a function f<-y~a+b.x and my data is an unbalanced
panel data (a dataframe with columns: firm,year,y,x). I
need to run that regression by year. I started to subset
the data by year and run the lm () function, but I asked R
help how to perform this regressions at once. One of the
suggestions was to run lmList (y ~ a + b.x | year,
) but
the coefficients that I obtain are different from those I
have before. Someone could explain me why?
Thank you,
Cecília Carmo (Universidade de Aveiro - Portugal)
______________________________________________
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, reproducible code.