Hello! My colleague and I have continually run into this error and would like to better understand why and how to remedy. We have been able to run other regressions, but when we go to run a certain set of variables, we both are getting this message each time we try. Any insight would be helpful as to 1) why and 2) how to remedy. Attaching our package as well here if it is helpful: #This loads the required package. Always select UK Bristol as a CRAN MIRROR / LOCATION #1. Highlight the below code and run (3rd icon or right click) require(relaimpo) install.packages('relaimpo',dep=TRUE) install.packages('iterators') install.packages('foreach') Thanks! Olivia Keefer Insights Analyst she/her/hers Monigle 575 8th Avenue Suite 1716 New York, NY 10018 M 740.701.2163 okeefer at monigle.com<mailto:okeefer at monigle.com> www.monigle.com<http://www.monigle.com/> linkedin<http://www.linkedin.com/company/monigle/>| twitter<https://twitter.com/Monigle>| monigle blog<http://www.monigle.com/blog/> [[alternative HTML version deleted]]
Hello, You ask a question on a certain regression that exhausts vector memory but don't post the regression(s) code (and data, btw). And load package relaimpo before installing it. Can you please read the posting guide linked to at the bottom of this and every R-Help mail? As is there's nothing to answer to. Hope this helps, Rui Barradas ?s 20:26 de 23/11/21, Olivia Keefer escreveu:> Hello! > > My colleague and I have continually run into this error and would like to better understand why and how to remedy. We have been able to run other regressions, but when we go to run a certain set of variables, we both are getting this message each time we try. > > Any insight would be helpful as to 1) why and 2) how to remedy. > > Attaching our package as well here if it is helpful: > > > > #This loads the required package. Always select UK Bristol as a CRAN MIRROR / LOCATION > > #1. Highlight the below code and run (3rd icon or right click) > > > > require(relaimpo) > > install.packages('relaimpo',dep=TRUE) > > install.packages('iterators') > > install.packages('foreach') > > > Thanks! > > Olivia Keefer > Insights Analyst > she/her/hers > > Monigle > 575 8th Avenue > Suite 1716 > New York, NY 10018 > M 740.701.2163 > okeefer at monigle.com<mailto:okeefer at monigle.com> > www.monigle.com<http://www.monigle.com/> > linkedin<http://www.linkedin.com/company/monigle/>| twitter<https://twitter.com/Monigle>| monigle blog<http://www.monigle.com/blog/> > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Hello Olivia! On Tue, 23 Nov 2021 20:26:07 +0000 Olivia Keefer <okeefer at monigle.com> wrote:> We have been able to run other regressions, but when we go to run a > certain set of variables, we both are getting this message each time > we try.It would help if you provided more information about how exactly you run this regression (e.g. "I'm running `reg <- lm(y ~ X)`") and what are the sizes of the matrices involved (e.g. "dim(X) is c(10000, 1000)"). A reproducible example we could run ("When I copy&paste the following code into my R session, I always get the error") would be ideal, but it's not always possible. I'm assuming you run relaimpo::boot.relimp, but with what kind of data? (Perhaps you had attached an example, but the mailing list ate the attachment. It eats most kinds of attachments: https://www.r-project.org/posting-guide.html) Adding more RAM to the computer running R would probably help. If the code makes excessive copies of data (by taking a large variable, changing something in it and keeping it referenced, maybe indirectly via an environment), perhaps it could be restructured to avoid doing that. I'm afraid it's hard to be more specific without more information.> [[alternative HTML version deleted]]P.S. Your message reached us almost intact, but in order to be sure that we'd be seeing your messages exactly as you compose them, please compose them in plain text, not HTML. -- Best regards, Ivan