In "R - project" I am trying to estimate the panel data lm model with plm function. When I include 3 dummy variables into the regression it doesn't appear in the summary of the model, but when I estimate a simple lm model it appears.
Why is it so? What should I do to estimate the statistics for those dummy variables?
lmcode that you are using - both sets? – Michelle Mar 15 '12 at 06:14model.FE<- plm(income~area+weight+dproduct+dummy1+dummy2+dummy3,data=panel, model = "within")– Ieva Mar 15 '12 at 06:37as.factor) and then entered it intoplmasfactor(mydummy)? That was howYearwas entered into the model on p.17 of the package vignette: http://cran.r-project.org/web/packages/plm/vignettes/plm.pdf – Michelle Mar 15 '12 at 06:45panel$dummy1=as.factor(panel$dummy1); panel$dummy2=as.factor(panel$dummy2); panel$dummy3=as.factor(panel$dummy3); model.FE<- plm(income~area+weight+dproduct+factor(dummy1)+factor(dummy2)+factor(dummy3),data=panel, model = "within")The error in contrasts appears. – Ieva Mar 15 '12 at 07:28