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

glm with a default gaussian distribution to model presence absence #18

Open
francisvolh opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@francisvolh
Copy link

Hello, I have been browsing this tutorial on SDM modelling with terra.

Thanks for the awesome tutorial. I have learned a lot from it as I have just started to explore SDMs.

But I have I noticed something that may be important, I understand the page is under construction but it may help in the future.

You model presence absence data (1 and 0's) with a glm with a Gaussian distribution. Wouldn't it be more adequate to use a model with 'family = binomial()' such as:
m1 <- glm(pb ~ bio1 + bio5 + bio12, data=sdmdata, family = binomial())

I have tried both and the predicted values a more aligned to "suitability" values from 0 to 1.

image

Anyway, thanks for you time, and thanks for the continuous support to the research community!

Cheers,

@francisvolh

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

1 participant