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
Panel data with multiple irregular observations in a yearDear Statalisters, I have three questions regarding my dissertation. I am investigating the impact…
Graphs are displaying small axis values and titles by defaultDear Statalist, My graphs have suddenly started generating small axis values and titles. To illustr…
Graphs are displaying small axis values and titles by defaultDear Statalist, My graphs have suddenly started generating small axis values and titles. To illustr…
Help interpreting mixed model with cubic termHi all, I have run the below model (code shown below) and have some questions about the first 3 ind…
Urgent: Convert .dta file to Stata 13 compatibility.Hello, I have an assignment due tomorrow that I have been working on a computer with Stata 14. I no …
Subscribe to:
Post Comments (Atom)
0 Response to Creating inverse-distance matrices with cross-sectional data and duplicate locations
Post a Comment