[R] Fitting generalized additive models with constraints?

From: David Reiss <dreiss.isb_at_gmail.com>
Date: Mon 04 Sep 2006 - 22:39:12 GMT

I am trying to fit a GAM for a simple model, a simple model, y ~ s(x0) + s(x1) ; with a constraint that the fitted smooth functions s(x0) and s(x1) have to each always be >0.

>From the library documentation and a search of the R-site and R-help
archives I have not been able to decipher whether the following is possible using this, or other GAM libraries, or whether I will have to try to "roll my own". I see from the mgcv docs that GAMs need to be constrained such that the smooth functions have zero mean. Is there a way around this?

Is such a constraint possible?
thanks very much for any advice or pointers. -David

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch 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 Tue Sep 05 08:43:38 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 07 Sep 2006 - 07:51:18 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.