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?