Hello
I have a dataset of latitude and longitude points that I need to convert to X and Y coordinates.
I have installed "geo2xy" and tried to use it by the resulting points just don't make any sense.
Below is an example with some made up data. Can anyone see what I might be doing wrong?
Many thanks
Anna
Using Stata SE/14.2
------------------------------------
clear
set obs 2
gen latitude=-35.2729 in 1/1
replace latitude=-35.204 in 2/2
gen longitude=150.094 in 1/1
replace longitude=162.125 in 2/2
list
geo2xy latitude longitude, gen(y x)
list
+----------------------------------------------+
| latitude longit~e x y |
|----------------------------------------------|
1. | -35.2729 150.094 234.73351 -154.83626 |
2. | -35.204 162.125 243.28889 -154.77627 |
+----------------------------------------------+
Related Posts with Struggling to convert latitude and longitude to x and y coordinates (geo2xy)
Time series data set up for time series analysisDear Altruistic, I'm using Stata 13. My data set is in following formation Code: * Example generat…
Editing graphHi, I need to edit a graph that starts from 0 to start from 10. I know how to change the x axis ran…
Gender wage gap, hourly wage or weekly wageHello everyone, I am doing a project on gender wage gap using Oaxaca Decomposition. I am wondering …
Validity of exclusion restriction in an Heckman IV modelDear Statalist Users, I was hoping to get some inputs on how to evaluate the validity of the exclus…
Using global variables within forvalue loopsI am trying to design a for loop that can be easily adapted for the input values but cannot work out…
Subscribe to:
Post Comments (Atom)
0 Response to Struggling to convert latitude and longitude to x and y coordinates (geo2xy)
Post a Comment