Is it possible to use margins (and then marginsplot) after spmlreg? I am running the following spatial regression:
I would like to compute the margins and then use marginsplot, however, I get the following error:
I read the spmlreg help file and saw that spmlreg does save e(sample)...
Any help will be greatly appreciated. Thank you!
Code:
spmlreg dep_var v1 v1_sq v2 v2_sq, weights(wts_inv2) eignvar(E_inv2) wfrom(Stata) model(lag) sr2
e(sample) does not identify the estimation sample
Functions
e(sample) marks estimation sample
e(sample) marks estimation sample