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

covariance matrix invertion by cholesky #63

Open
lucas-jardim opened this issue Feb 27, 2021 · 1 comment
Open

covariance matrix invertion by cholesky #63

lucas-jardim opened this issue Feb 27, 2021 · 1 comment

Comments

@lucas-jardim
Copy link

Dear,

I am trying to use pglmm, but it returns this error "Error in chol.default(re.i[[3]]) : the leading minor of order 13 is not positive definite", because the chol function, in get_design_matrix, cannot invert my spatial covariance matrix. However, I can invert the spatial covariance matrix using the function base::solve. There is a possibility to allow the user to choose the inversion function such as base::solve or MASS::ginv. Do you have any suggestion to turn my matrix invertible, I tried to add a small noise to the matrix values but it was not effective.

Best wishes,

@daijiang
Copy link
Owner

daijiang commented Mar 1, 2021

Can you please share an examplary dataset and the code so that we can reproduce your problem? Thanks.

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