Hi All,
I am trying to calculate the distance of disaster occurrences from specific place names within a 50km radius.
The code that I am using is:
geonear place_name latitude_afro longitude_afro using "GDIS Geonear Test.dta", n(disastertype latitude longitude) ignoreself long within(50)
and it is coming up with the following error: latitude_afro or longitude_afro not constant within place_name group r(459);
I have tried two variables at the start of the code place_name and merge_location and they have each presented the same error.
Any advice would be much appreciated.
Cheers,
Rob
Related Posts with geonear r(459) error message advice
Define subroutine in a .do fileHi, I have a large do file that I would like to break down in several smaller pieces of code that I…
Dealing with missing dataHi, I use the following equation for calculating return for a portfolio of stocks. gen MOMf3_p1= ( …
Using Kappa / Weighted KappaDear all Please advise if I can use kappa with this data structure: With two raters (fc and lp) sco…
How to deal with "factor variable and time-series operators not allowed "when I run gllamm command?Hello all, How can I include dummy variables in gllamm?Or how can I change factor variales into dumm…
Using Foreach with loop to calculate averageHi, I want to calculate average of a variable X for all households for each 200 categories on varia…
Subscribe to:
Post Comments (Atom)
0 Response to geonear r(459) error message advice
Post a Comment