Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation does not specify how input coordinates should be formatted/ distance is calculated for modified test. #1

Open
raholler opened this issue Nov 21, 2022 · 1 comment

Comments

@raholler
Copy link

modified.ttest gives different results when different coordinate formats are used and it is unclear what would be the most correct one because it is not specified how distances are calculated. In particular, it is unclear whether I can use LAT/LON or whether I need to use a project coordinate system to get accurate results.

@faosorios
Copy link
Owner

Dear Radost,

I appreciate your message and your interest in SpatialPack. Like many statistical tests, the modified t-test is not invariant to changes in scale. This is a quite natural aspect that one should be aware of. I can say that the calculation of the distances between coordinates is performed using the Euclidean distance. I regret that I cannot say if there is any particular choice of type of coordinates that might be more advisable, however, I agree that these details should be pointed out in the reference manual.

Warm regards,
Felipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants