I am working on a panel study project (in R) and encountered the following error(s) when creating a within fixed effect:
within5 <- plm(Y~X1*X3+X8+X9, data=pdata2, model = "within")
summary(within5)
Here X8
and X9
are control variables (but they contain missing values)
The error I receive is:
crossprod(t(X), beta) :non-conformable arguments
Any advice?
When working with dummy fixed effects, I receive the following error:
dummy5 <- plm(Y ~ X1*X3+X8+X9+(factor(country)-1), data=pdata2,
model = "pooling")
Error: Error in xj[i, , drop = FALSE] : (subscript) bolesh Index too long