-
Notifications
You must be signed in to change notification settings - Fork 5
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
prior with multiple covariates doesn't seem to work #13
Comments
Hi Tony. I'm a bit confused by your function. The prior argument has to be a function that takes a dataframe (of all covariates) and returns a vector of probability of presence for each row in the dataframe. You use cbind, which returns either a matrix or dataframe, right? Sorry if I missed something. |
Oh, I see. For example, if we have environmental covariates A, B, and C, the prior function produces a single probability of presence given the three covariates, rather than a probability given each of the covariates individually? Would it be possible for you to give an example? |
That's correct. It's an a priori guess at the SDM function. There's an example here: https://github.com/goldingn/gp_sdm_paper/blob/master/figures/fig1_2.R#L63 |
Ok, great. Thanks for your help! |
No problem! |
From the documentation, we see that it is possible to provide a prior estimate of presence probability given a vector of environmental covariates, but trying this results in the following error:
You can see our code (line 185) here.
The package works well otherwise, using priors on single environmental variables.
Any advice is appreciated.
The text was updated successfully, but these errors were encountered: