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)
Regression maintaining variable constantHello, how can i make a regression maintaining one variable constante? specifically i need to show t…
continuous variable to categorical one.Dear All, Is there a more concise way to do the following. Code: * Example generated by -dataex-. T…
Need Help: 95% Confidence Interval not Equal to Estimate +/- 1.96 times of SEI need some help for the standard error and 95% confidence interval. My understanding is that the 95…
Simple question from a beginnerGood morning/afternoon/evening/night I'm new to stata and I'm trying to generate a dummy variable f…
Different results from Mundlak and Hansen-Sargan test (xtoverid)Dear all, I am getting different results from the Mundlak test and the Hansen-Sargan test (xtoverid…
Subscribe to:
Post Comments (Atom)
0 Response to Struggling to convert latitude and longitude to x and y coordinates (geo2xy)
Post a Comment