Hi,
I am running a Moran’s test of residual correlation with nearby residuals.
I know that Moran runs on regress but if i run it after ivreg2 doesn't work
this is a snipped of my code:
foreach y of numlist 2013 2018 {
sum vote_fdi`y'
*** 2SLS
ivreg2 vote_fdi`y' (opp_rate = iv_jmeansent), robust
ivreg2 vote_fdi`y' (opp_rate = iv_jmeansent) $covars, robust
}
spmatrix create contiguity W, replace
estat moran, errorlag(W)
After running the test I get this error:
estat moran not valid
r(321);
How can I solve this?
Thanks everyone
Related Posts with Moran test and ivreg2
tab command in Stata 17Hi everybody, just a quick general question: the new Stata 17 modifies the command table, suppressi…
xtivreg2 and interpretation of post estimation resultsHi, I am running an xtivewg2 command using some instrumental variables. I would like to reconfirm m…
why xtile nq(3) only builds two groups, instead of three groups?I would like to build three groups (terciles) by using xtile. However, it turned out that xtile nq(3…
Would using the Wald Chi2 be appropriate to choose between xtprobit and xtlogit results?I've run xtlogit and xtprobit regressions that yield very similar results. Would it be fine if I use…
Problem with calculating particular percentages of flowsGood morning, first of all these are the first times I am using Stata, so this could be a very eleme…
Subscribe to:
Post Comments (Atom)
0 Response to Moran test and ivreg2
Post a Comment