Skip to content
Prev 69404 / 398513 Next

Monotonic regression

The 'pava' function below looks like code that I wrote
(with all the comments removed).  I have posted it two or
three times over the years to the S/R lists.

As Martin Maechler has noted, the function 'isoreg' will also
do monotonic regression (much faster for large data sets).
However, it does not allow weights (at least as of R 2.0.1).

I don't understand the original poster's comment about
"local minimum".  Isotonic regression is a convex optimization
problem and 'pava' or 'isoreg' will always produce the 
unique solution.

Rich Raubertas
Merck & Co.