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

Memory error with high number of observations #41

Closed
GWeindel opened this issue Sep 9, 2018 · 2 comments
Closed

Memory error with high number of observations #41

GWeindel opened this issue Sep 9, 2018 · 2 comments

Comments

@GWeindel
Copy link

GWeindel commented Sep 9, 2018

Hi,
I'm trying to plot the fixed effects of a lmer model, but the number of data points seems to high for ggeffects despite being a reasonnalby large dataset.

reproducible example :

library(lme4)
data = data.frame(X=rnorm(30000), Y=rnorm(30000), Z=rep(1:2),cell=rep(c(1:10),3000))
LME <- lmer(X ~ Y * Z + (1|cell), data=data)
library(ggeffects)
dat <- ggpredict(LME, terms = c("Y","Z"))
plot(dat)

Erreur : impossible d'allouer un vecteur de taille 26.8 Go

sessionInfo() :

R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS
ggeffects_0.3.1 lme4_1.1-15 

Is there a way to reduce the object size ?

Thanks for your package by the way !

@GWeindel GWeindel changed the title Memory error with high number of observation Memory error with high number of observations Sep 9, 2018
@strengejacke
Copy link
Owner

Which package version do you have? This issue should be solved with version >= 0.5.0

@GWeindel
Copy link
Author

Oh sorry you're right. Works like a charm after uploading to the last github version. Thanks for already having fixed it.

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