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
error correction model with rolling regressionHello. I am trying to do error correction model with rolling regression. here. I want to change the …
Error message "Maximum numbers of iterations exceeded"Hello, I am in the process of building a regression model with a DV (q_tot), an IV (rdalliances), a…
How to replace value of a variable in one round with its value in a previous round ?Hi all, Please consider the following sample data Code: * Example generated by -dataex-. To insta…
Multiple subgroup meta-analysisGood evening, I want to do a meta-analysis of multiple subgroups. Code: * Example generated by -da…
How To Count Identical Values As One Without DroppingDear Stata Community, I'm trying to 'count the number of years each person attended the conference …
Subscribe to:
Post Comments (Atom)
0 Response to Creating inverse-distance matrices with cross-sectional data and duplicate locations
Post a Comment