Re: [R] monotonic GAM with more than one term

2009-03-03 Thread Simon Wood
There's an example at the end of the pcls help file in version 1.5-0 --- just submitted to CRAN. best, Simon On Wednesday 25 February 2009 18:48, Benjamin Tyner wrote: Hi, Does anyone know how to fit a GAM where one or more smooth terms are constrained to be monotonic, in the presence of by

Re: [R] monotonic GAM with more than one term

2009-03-03 Thread Benjamin Tyner
Simon, Many thanks, that is a very helpful example. It seems quite general in that it also works under bs=cr as well as with fx=TRUE. -Ben There's an example at the end of the pcls help file in version 1.5-0 --- just submitted to CRAN. best, Simon

[R] monotonic GAM with more than one term

2009-02-25 Thread Benjamin Tyner
Hi, Does anyone know how to fit a GAM where one or more smooth terms are constrained to be monotonic, in the presence of by variables or other terms? I looked at the example in ?pcls but so far have not been able to adapt it to the case where there is more than one predictor. For example,