First question on the site. I have been following Princeton's plm package guide and have everything done (without errors). However, I am stuck in the last step of estimating a "random" effects model. I think my data fits a random model well, so this is a big issue. I cannot understand why the fixed specification works but random does not. Here is the error I get:
Error in solve.default(M[therows, therows], quad[therows]) : Lapack routine dgesv: system is exactly singular: U[2,2] = 0
Any help on this would be really useful!
Here is my code:
random <- plm(Reserves ~ Corruption +
RuleofLaw +
BankingRisk +
GDPPC + Electricity +
Mobile + ATM + SchoolEnrollment + Savings +
Population + NumberPOS + POSper,
data=paneldata,
index=c("Country", "Year"), model="random")
summary (random)
All of my variables are general format in csv.