-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error : torch._C._LinAlgError #119
Comments
Hi @agnes-duhamet , You can avoid the errors by scaling your variables:
|
Thanks a lot. Agnès |
Hi @agnes-duhamet, No it is possible, the problem is that you have empty levels in your habitat_principal variable:
|
Hi,
I would like to model marine fish species distribution in function of distance to the coast, depth, and marine habitat taking into account spatial autocorrelation and species interaction. I think that this package sjSDM could be appropriate to model this but when I try to run sjSDM model I have this error : Error : torch._C._LinAlgError: linalg.inv: The diagonal element 3 is zero, the inversion could not be completed because the input matrix is singular.
I wrote :
model <- sjSDM(Y = Occ, env = linear(data = env_var, formula = ~dist_land+depth), spatial = linear(data = SP, formula = ~longitude_start_DD:latitude_start_DD), se = TRUE, family=binomial("probit"), sampling = 100L)
Here are the data:
sjsdm.zip
Would you know where the error comes from and how I can avoid it?
Thanks in advance,
Agnès
The text was updated successfully, but these errors were encountered: