Re: [R] varIdent error using gam function in mgcv

2010-06-21 Thread Gavin Simpson
On Fri, 2010-06-18 at 10:35 -0700, niall wrote: > Hello, > > As I am relatively new to the R environment this question may be either > a) Really simple to answer Use gamm() not gam() > b) Or I am overlooking something relatively simple. Use gamm() not gam() ;-) > I am trying to add a VarId

Re: [R] varIdent error using gam function in mgcv

2010-06-18 Thread Joris Meys
How exactly do you want to define your weights? varIdent returns a varFunc object, not a vector with the same length as the data variables, as required by the gam function. Cheers Joris On Fri, Jun 18, 2010 at 7:35 PM, niall wrote: > > Hello, > > As I am relatively new to the R environment t

[R] varIdent error using gam function in mgcv

2010-06-18 Thread niallllll
Hello, As I am relatively new to the R environment this question may be either a) Really simple to answer b) Or I am overlooking something relatively simple. I am trying to add a VarIdent structure to my gam model which is fitting smoothing functions to the time variables year and month for a pa