You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by alexandervossen November 12, 2024
Hi all. Thanks for the great work! I just wanted to rerun some code that is about a year old where I successfully used ggpredict to create predictions for plotting a curvilinear effect with ggplot2. However, I am no longer able to do so. The fixest model is fairly large with about 2,000,000 observations from 6,000 entities over 200 weeks from 6 markets.
While it used to work on my local MacBook (16 GB RAM) a year ago, it now does not anymore and runs out of memory with “vector memory limit of 16 GB reached.” I also tried it on a VM I set up with 180 GB RAM, but that also crashes after running out of RAM as well. I tried with the Grunfeld data, and it seems to work in general, so it might be the large number of observations. Stata’s margins also does the job even on the local 16 GB MacBook. And the results are comparable to the older ones I got with ggpredict.
What also surprises me is that even if I replace "all" with specific values like "0.9 0.99", it finishes, but I get a notification: “Could not compute variance-covariance matrix of predictions. No confidence intervals are returned.” It just returns an object with 1 observation of 2 variables, with "x" and "group" both set to 1. So the actual values of x I requested are not returned, nor are the predictions. Even if I specify ci.level = NA (indicating I don’t want CIs), I still get that error. I tried around with different clustering of the SEs in genrating the feols model but that did not make a difference. I also tried the new predict_response command but the problem remains.
Grateful for any suggestions that might give a hint to where the problem is on my side.
Thanks!
A
The text was updated successfully, but these errors were encountered:
Discussed in #603
Originally posted by alexandervossen November 12, 2024
Hi all. Thanks for the great work! I just wanted to rerun some code that is about a year old where I successfully used
ggpredict
to create predictions for plotting a curvilinear effect withggplot2
. However, I am no longer able to do so. The fixest model is fairly large with about 2,000,000 observations from 6,000 entities over 200 weeks from 6 markets.What I do in general looks simplified like:
While it used to work on my local MacBook (16 GB RAM) a year ago, it now does not anymore and runs out of memory with “vector memory limit of 16 GB reached.” I also tried it on a VM I set up with 180 GB RAM, but that also crashes after running out of RAM as well. I tried with the Grunfeld data, and it seems to work in general, so it might be the large number of observations. Stata’s
margins
also does the job even on the local 16 GB MacBook. And the results are comparable to the older ones I got withggpredict
.What also surprises me is that even if I replace "all" with specific values like "0.9 0.99", it finishes, but I get a notification: “Could not compute variance-covariance matrix of predictions. No confidence intervals are returned.” It just returns an object with 1 observation of 2 variables, with "x" and "group" both set to 1. So the actual values of x I requested are not returned, nor are the predictions. Even if I specify
ci.level = NA
(indicating I don’t want CIs), I still get that error. I tried around with different clustering of the SEs in genrating thefeols
model but that did not make a difference. I also tried the newpredict_response
command but the problem remains.Grateful for any suggestions that might give a hint to where the problem is on my side.
Thanks!
A
The text was updated successfully, but these errors were encountered: