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

prepareGradient won't make correct rLNew value #200

Open
cascadianaturalist opened this issue Sep 27, 2024 · 1 comment
Open

prepareGradient won't make correct rLNew value #200

cascadianaturalist opened this issue Sep 27, 2024 · 1 comment

Comments

@cascadianaturalist
Copy link

I've been trying to extrapolate species presence from a set of 30 spatially explicit plots to a set of 255 plots within the same study area without species presence data. When I use the prepareGradient function with the updated coordinates and xData values, (from n = 30, to n = 255) and run predict, it continues to only give predictions for the original 30 points, and not the 255 new points, despite specifying the new dataframe. I followed the code in the script for the bird example exactly and do not know how to troubleshoot this issue. The issue seems to be after constructing the prepareGradient, the "rLNew" still equals 30, and not 255, despite the dataframe for both XDataNew and sDataNew = 255 rows, not 30 rows.

@gtikhonov
Copy link
Member

Could you explain why do you want to use prepareGradient(...) even when you already know the new locations and XData for them? For me this sounds more like a standard use case of predict(...) method.

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