Dear all,
I encounter the problem with the user written command acreg or ols_spatial_HAC for spatial standard error adjustments that standard errors are not displayed for certain ranges of distance cutoffs. I use STATA 15 on Win (64-bit).
I have 500+ observations but this reduced example should show the problem:
This also happens when using ols_spatial_HAC command instead of acreg.
I am puzzled by the fact that I get a standard error for the 200km distance cutoff, but none for the 175km one.
Thank you in advance!
Sincerely,
Steven
I encounter the problem with the user written command acreg or ols_spatial_HAC for spatial standard error adjustments that standard errors are not displayed for certain ranges of distance cutoffs. I use STATA 15 on Win (64-bit).
I have 500+ observations but this reduced example should show the problem:
Code:
*My example data clear all input float(lon lat) byte x double y float constant 8.978752 49.15352 1 .3125 1 9.16124 47.79682 0 .230769230769231 1 8.627637 48.93355 1 .277777777777778 1 9.386187 47.71273 0 .333333333333333 1 9.283757 49.29697 1 .0952380952380952 1 7.943795 48.47777 1 .3 1 8.503139 49.29774 1 .285714285714286 1 8.572759 48.94195 1 .272727272727273 1 7.883648 48.07095 1 .227272727272727 1 8.195633 47.67924 0 .166666666666667 1 7.950767 47.96292 0 .333333333333333 1 8.760374 47.78041 1 .2 1 8.185254 48.86308 1 .234042553191489 1 8.3561125 48.71901 1 .166666666666667 1 8.644542 49.05665 1 .214285714285714 1 7.594427 47.63269 1 .5 1 8.70044 49.34214 1 .307692307692308 1 end *now run my regression for various distance cutoff values forvalues i=25(25) 200{ acreg y x , spatial latitude(lat) longitude(lon) distcutoff(`i') } *I cannot explain now why there is no se shown for 175 but one for 200 exists *by adding the bartlett option this issue disappers forvalues i=25(25) 200{ acreg y x , spatial latitude(lat) longitude(lon) distcutoff(`i') bartlett }
I am puzzled by the fact that I get a standard error for the 200km distance cutoff, but none for the 175km one.
Thank you in advance!
Sincerely,
Steven
Comment