1

I have added three interaction terms to a regression. I have an error saying

Error: cannot allocate vector of size 2.6 Gb

Is it possible to increase the memory?

Also is the vector the grid4 variable or the model, full?

lm(lw~expr*kww + expr*iq + expr*unemployment_years, train60) -> full

grid4 <- train60 %>% data_grid(expr, kww, iq, unemployment_years) %>% add_predictions(full) 
Parfait
  • 104,375
  • 17
  • 94
  • 125

1 Answers1

0

To answer you question directly, yes it is possible to increase memory size.
However, when I get this kind of error it usually has do to something in the code/mutation I want to preform. As you did not provide an input it is hard to reproduce.

Annet
  • 846
  • 3
  • 14