I'm exploiting district-level unbalanced panel data.
I used the following command to generate a weight matrix w
HTML Code:
spwmatrix gecon _CY _CX , wname(w) wtype(inv) cart dband(0 100) rowstand
HTML Code:
Inverse distance (alpha = 1) spatial weights matrix (13892 x 13892) calculated successfully and the following action(s) taken: - Spatial weights matrix created as Stata object(s): w. - Spatial weights matrix has been row-standardized.
HTML Code:
xtmoran RYield, wname(w)
I don't know how to export the above-generated weight matrix as dta file.
I can't find the appropriate code.
Can you please advise,
Thank you,
0 Response to export spatial weight matrix
Post a Comment