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
Outreg2 First stage (xtivreg) Equation with random effectsI am using a panel random effects model with instrumental variables and robust clustered standard er…
Statistical power of small observationsHello- although that one of the variables in my regression forms only 1.7% of that observations (tot…
Drop observations by group if not in all survey roundsHi all, I would like to drop households from my dataset if they were not surveyed in both of my sur…
Comparing household income in two groupsSo I have a dataset where my two dependent variables are 1) underwent surgery (900 patients) and 2) …
Comparing household income between two groupsHi all, So I have a dataset where my two dependent variables are 1) underwent surgery (900 patients…
Subscribe to:
Post Comments (Atom)
0 Response to Creating inverse-distance matrices with cross-sectional data and duplicate locations
Post a Comment