Re: [R] force glm estimates to be nonnegative

2008-04-25 Thread Samu Mäntyniemi
You could use the BRugs package and formulate your prior knowledge about slopes in terms of a probability distribution. Michele Christina Itten kirjoitti: > Is there a way to force certain formula parameters to be nonnegative? > > What I want to do is to estimate student capacity over time, na

Re: [R] force glm estimates to be nonnegative

2008-04-24 Thread Prof Brian Ripley
On Fri, 25 Apr 2008, Michele Christina Itten wrote: > Is there a way to force certain formula parameters to be nonnegative? > > What I want to do is to estimate student capacity over time, namely by > >> capacity ~ Student + Student:Day > > I add this formula to a glm call and obtain negative lea