Hi,
I am running a hedonic regression on how (log) house prices and distance from a local airport. Because of the spatial relationship between houses I need to use a SAR model.
My data is cross-sectional and contains the latitude and longitude of several homes (I do not have a shapfile).
I am trying to create an inverse-distance matrix but am met with the error "Two or more observations have the same coordinates" which makes sense as some houses share a postcode hence have the same latitude and longitude.
How do I go about creating this matrix? I read about dropping duplicates, creating the matrix and then merging the data sets together but this causes me to lose observations?
Any help would be greatly appreciated!
Related Posts with Creating inverse-distance matrices with cross-sectional data and duplicate locations
I am shocked that Stata may not understand variable names literallyI have this simplest dataset. var new 0 1 Then I type tab va then it should throw me an error sa…
Discrete choice, eaalogit command, nlcom command and the probability of a given attribute non-attendace patternI'm using the eaalogit command by A. R. Hole ("A discrete choice model with endogenous attribute att…
graphing a change with xtlineHello, I have issues with the command to generate a graph which will show a change of my variable o…
Ellip (ellipse) issuesGreetings - my first post, so apologies for being ignorant of conventions, any directions/instructio…
can we order the variables after -egen- ? Code: egen progsvness=rowmean(techAdvt prodAdvt) order progsvness,a(prodAdvt) the cod…
Subscribe to:
Post Comments (Atom)
0 Response to Creating inverse-distance matrices with cross-sectional data and duplicate locations
Post a Comment