Reputation: 59
Below is an image of the data for some variables in pdata.frame format. The panel is for 166 municipalities in RN for 4 years, generating a total of 664 observations.Can I make the panel available on drive: https://1drv.ms/x/s!AsPWGhkh95w3hIZpfVtH4OJ-x8f1xg?e=fuSJUb
the W matrix was created as follows using the SHP for the municipalities of RN.
nblist <- poly2nb(rn, queen = TRUE)
then I standardized it
w.rn.queen <- spdep::nb2listw(nblist, style="W")
when I try to perform the following test:
splm::slmtest(within_model,data = rn_df,listw = w.rn.queen,test='lme')
generates the error: Error in X %*% coef(mod) : non-conformable arguments
Upvotes: 0
Views: 40