Maura E Monville
2007-Dec-27 08:26 UTC
[R] Error: cannot allocate vector of size ... Bcc: Add Cc | Add Bcc
I read the subject message in a number of R archived emails. Since I am experiencing the same problem:> upfmlaA ~ T + cosP + cos2P + cos4P + cos5P + sin3P + sin5P + cosP2 + sinP3 + P2> glmod <- gls(upfmla,correlation=corAR1(),method="ML")Error: cannot allocate vector of size 491.3 Mb> dim(xx)[1] 8025 14 and since I'm running R on a 64-bit Linux platform ... I wonder whether this problem has been solved or I'm better off giving up the Generalized Least Squares models. Would it make sense to break the data into two halves and fit one half at a time ? Thank you . Happy new year, -- Maura E.M [[alternative HTML version deleted]]
Maura E Monville wrote:> I read the subject message in a number of R archived emails. > Since I am experiencing the same problem: > >> upfmla > A ~ T + cosP + cos2P + cos4P + cos5P + sin3P + sin5P + cosP2 + > sinP3 + P2 >> glmod <- gls(upfmla,correlation=corAR1(),method="ML") > Error: cannot allocate vector of size 491.3 Mb > >> dim(xx) > [1] 8025 14How much memory is consumed in your workspace? If so, remove huge objects from your workspace How big is upfmla? Are there factors in it? If so, how many levels? Then you can calculate the size of your design matrix. 64-bit is nice, but how much RAM is in your machine? Uwe Ligges> and since I'm running R on a 64-bit Linux platform ... I wonder whether this > problem has > been solved or I'm better off giving up the Generalized Least Squares > models. > Would it make sense to break the data into two halves and fit one half at a > time ? > > Thank you . > > Happy new year,