Re: [R] autocorrelation error: cannot allocate vector of size 220979 Kb

From: J S <yulya258_at_gmail.com>
Date: Sun, 18 May 2008 13:16:58 -0400

Thanks. Here are some information about my computer and file:

Operating system: Windows 2000

RAM: 1.99 GB After I run the program:

> gc()

          used (Mb) gc trigger (Mb) max used (Mb)

Ncells 468065 12.5 818163 21.9 818163 21.9

Vcells 1160828 8.9 46162021 352.2 54869490 418.7

> object.size(a)

[1] 2144392

> str(a)

'data.frame': 16925 obs. of 14 variables:

 $ Site : Factor w/ 6 levels "HD","LEA","MCD",..: 6 6 6 6 6 6 6 6 6 6 ...

 $ Plot : num 1 1 1 1 1 1 1 1 1 1 ...

 $ Veg : Factor w/ 2 levels "Forest","Grass": 2 2 2 2 2 2 2 2 2 2 ...

 $ Landuse : Factor w/ 2 levels "Rural","Urban": 2 2 2 2 2 2 2 2 2 2 ...

 $ Date : Factor w/ 2484 levels "01-Apr-01","01-Apr-03",..: 1078 1162 1244 1326 1407 1488 1569 1650 1731 1812 ...

 $ Soil.temp : num 26.1 25.9 26.0 25.7 25.5 ...

 $ combin : Factor w/ 6 levels "HDForestUrban",..: 6 6 6 6 6 6 6 6 6 6 ...

 $ year_scale: num -1.4 -1.4 -1.4 -1.4 -1.4 ...

 $ day : num 14 15 16 17 18 19 20 21 22 23 ...

 $ M : num 8 8 8 8 8 8 8 8 8 8 ...

 $ year : Factor w/ 8 levels "2000","2001",..: 4 4 4 4 4 4 4 4 4 4 ...

 $ combin2 : Factor w/ 11 levels "HDForestUrban1",..: 10 10 10 10 10 10 10 10 10 10 ...

 $ time : num 225 226 227 228 229 230 231 232 233 234 ...

 $ time_scale: num 32.8 33.8 34.8 35.8 36.8 ...

On Sat, May 17, 2008 at 5:04 PM, jim holtman <jholtman_at_gmail.com> wrote:

> More information is needed. What is your operating system? How much RAM
> do you have? Are there other objects in memory that you could delete to
> recover some space? What does 'str' and 'object.size' say for the data you
> are analyzing? What does 'gc()' report - you may want to do this
> before/after sections of code to see how memory might be growing.
>
> On Fri, May 16, 2008 at 1:56 PM, J S <yulya258_at_gmail.com> wrote:
>
>> Dear R community,
>>
>>
>>
>> I used a linear mixed model (named lm11) to model daily soil temperature
>> depending upon vegetation cover and air temperature. I have almost 17,000
>> observations for six years.
>>
>>
>>
>> I can not account for autocorrelation in my model, since I receive the
>> error
>> message after applying the function:
>>
>>
>>
>> update(lm11, corr=corAR1())
>>
>>
>>
>> Error: cannot allocate vector of size 220979 Kb
>>
>>
>>
>> Do you have any suggestions?
>>
>>
>>
>> Thanks, Julia
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem you are trying to solve?

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
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. Received on Sun 18 May 2008 - 18:05:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 18 May 2008 - 18:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive