Re: [R] mgcv: pcls() makes everything linear

2013-07-23 Thread Simon Wood
I can't see anything immediately wrong except: 1. presumably there are repeated values in 'road_quiet' aren't there? If so then your inequality constraint matrix will contain constraints that are *exact* copies of each other. I'm not sure, and don't immediately have time to try it out, but it c

[R] mgcv: pcls() makes everything linear

2013-07-23 Thread Kathrine Veie
Dear R helplisters, I am trying to implement a mononicity constraint on a smooth term in my generalized additive model with the mgcv package (v. 1.7-18). I adapted the code from an example given in the help file for pcls(). The example runs just as one would expect, but when I adapt it and use