Skip to content

constraining initial slope in smoother.spline

2 messages · Bill Shipley, Simon Wood

#
- you should be able to modify the example in the help file for 
mgcv::pcls, to do this. The example uses inequality constraints to impose 
monotonicity on a smooth, but the routine will also accept equality 
constraints.

Simon