Hello everyone!
I have a 55k observations data set (USA census tracts) with latitude and longitude in every case. Also, the information of employment (number of jobs) in every tract.
I need to use the GEONEAR function to identify all the tracts (around each tract) within a 1km diameter AND to sum the number of jobs of those tracts in that first 1k window. (And ultimately get employment density)
This is the expression I`m using, but the result is just THE NEAREST no all tracts around each tract.
geonear ctid0 ycoord xcoord using "'file_1'", n(fid ycoord xcoord) ign long within(1) near(0)
The use of GEONEAR is not the problem. The loop to sum employment it’s the complicated part, where I would appreciate some guidance. I really appreciate any help you can provide.
Comment