Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-02 Thread Corrado
Dear Gavin, Simon, this is the result of str: str(dist_scot24_vector_with_climate) 'data.frame': 2265025 obs. of 14 variables: $ X : int 1 2 3 4 5 6 7 8 9 10 ... $ tetrad_i: Factor w/ 1505 levels HP61A,HP61I,..: 1505 1504 1503 1502 1501 1500 1499 1498 1497 1496 ... $ tetrad_j:

Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-02 Thread Gavin Simpson
On Wed, 2009-09-02 at 09:26 +0100, Corrado wrote: Dear Gavin, Simon, this is the result of str: str(dist_scot24_vector_with_climate) 'data.frame': 2265025 obs. of 14 variables: $ X : int 1 2 3 4 5 6 7 8 9 10 ... $ tetrad_i: Factor w/ 1505 levels HP61A,HP61I,..: 1505 1504

Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-02 Thread Simon Wood
I'm afraid that mgcv:gam can't cope with this size of data set with this complexity of model. The model matrix alone for your first model would require around 3 terabytes of storage. For the simplest additive model the model matrix is `only' 1.6 Gb, but that's before you do anything with it

Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-01 Thread David Winsemius
On Sep 1, 2009, at 9:51 AM, Corrado wrote: Dear friends, what is this error message in gam I cannot understand what it means is it a bug? gam_bray_scot24_pc_0505gam(bray~s(PC1,PC2,PC3,PC4,PC5, PC1.1,PC2.1,PC3.1,PC4.1,PC5.1),data=dist_scot24_vector_with_climate) If the code was

Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-01 Thread Corrado
Nope Of course, it was just a copy and paste problem On Tuesday 01 September 2009 15:00:34 David Winsemius wrote: On Sep 1, 2009, at 9:51 AM, Corrado wrote: Dear friends, what is this error message in gam I cannot understand what it means is it a bug?

Re: [R] Strange error returned or bug in gam in mgcv???? - additional information

2009-09-01 Thread Corrado
Here I pasted the code from when I opened the R shell, so that it possible to see what is going on: http://scsys.co.uk:8002/33309?hl=onsubmit=Format+it! Thanks in advance -- Corrado Topi Global Climate Change Biodiversity Indicators Area 18,Department of Biology University of York, York,

Re: [R] Strange error returned or bug in gam in mgcv???? - yet more additional information

2009-09-01 Thread Corrado
I am using mgcv 1.4-1.1 on Fedora 9 64 bit on an Opteron server with 8Gb of RAM. On Tuesday 01 September 2009 15:19:28 Corrado wrote: Here I pasted the code from when I opened the R shell, so that it possible to see what is going on: http://scsys.co.uk:8002/33309?hl=onsubmit=Format+it!

Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-01 Thread Simon Wood
The basic problem is that you have requested a 10 dimensional thin plate spline, with a basis dimension of 196830. In reality it will not be possible to compute this, even if you have more than 196830 data. In any case it would be unlikely to provide a very useful model --- the simplest

Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-01 Thread Corrado
Dear Simon, I have stored all information at the link: http://scsys.co.uk:8002/33309?hl=onsubmit=Format+it! I have the same problem if I do s(PC1) + . + s(PC10) or s(Pc1,PC2,PC3,PC4,PC5)+s(PC6,PC7,PC8,PC9,PC10) or s(PC1,PC2,PC3,PC6,PC7,PC8) . I have renamed

Re: [R] Strange error returned or bug in gam in mgcv????

2009-09-01 Thread Gavin Simpson
On Tue, 2009-09-01 at 17:55 +0100, Corrado wrote: Dear Simon, I have stored all information at the link: http://scsys.co.uk:8002/33309?hl=onsubmit=Format+it! You could have included that in your mail to the list - it is just plain text after all. I have the same problem if I do