[R] Regressing the residuals on the country dummies

Johanna von Bahr johanna.vonbahr at gmail.com
Thu Oct 1 21:15:04 CEST 2015


I’m trying to estimate a model regressing the residuals on the country dummies as follows;
model.resC <- lm(model2$res ~ as.factor(Country))
summary(model.resC)

As I call the model I get the following results regarding the residuals:

"ALL 90 residuals are 0: no residual degrees of freedom!"

What has gone wrong?


More information about the R-help mailing list