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

is_singular with lme models uses a lot of memory #824

Open
alejandrocorbellini-ac opened this issue Oct 26, 2023 · 1 comment
Open

is_singular with lme models uses a lot of memory #824

alejandrocorbellini-ac opened this issue Oct 26, 2023 · 1 comment
Labels
question ⁉️ Further information is requested reprex 📊 We need a reproducible example for further investigation

Comments

@alejandrocorbellini-ac
Copy link

hi!

I just wanted to report a memory usage issue when calling get_variance with a linear mixed effects models. I'm new to R and mixed effects models in general, so sorry if something doesn't make sense.

I noticed that calling r2_nakagawa from the performance package ends up calling is_singular in helper_functions

In my code, this is the call chain:

r2_nakagawa -> insight::get_variance -> compute_variances -> is_singular

This ends up using a lot of memory when creating the diagonal matrix, although I don't know how to fix it. This also affects sjPlot::tab_model when passing an lme model, since internally they also seem to call r2_nakagawa.

Thanks!

@strengejacke
Copy link
Member

Do you have a reproducible example? Is it in general, or with many parameters or large data sets only?

@strengejacke strengejacke added question ⁉️ Further information is requested reprex 📊 We need a reproducible example for further investigation labels Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ⁉️ Further information is requested reprex 📊 We need a reproducible example for further investigation
Projects
None yet
Development

No branches or pull requests

2 participants