I am having a problem setting up a panel data model (Fixed Effects) in R.
Currently I am running the following code:
fe1 <- summary(lm(qnorm(y) ~ factor(Bank) -1 + factor(Country)*x ,data=PDwideHPI))
Each Bank has 6 observations per country. I would expect that the summary output would provide me with a bank-specific intercept and secondly, a country specific coefficient for x. However, the R console returns bank-specific AND country-specific intercepts.
Thus I receive estimates for: Factor(Bank)1 Factor(Bank)2 Factor(Bank)3 Factor(Bank)4 Factor(Country)1 Factor(Country)2 x Factor(Country)1:x Factor(Country)2:x
whereas I expect the following: Factor(Bank)1 Factor(Bank)2 Factor(Bank)3 Factor(Bank)4 x Factor(Country)1:x Factor(Country)2:x
How do I solve this?