Monotonic interpolation
Not if Mr. excalibur really want interpolating (as oppose to smooting) splines. Other than linear, I'm not even sure if it can be done (though I'm no expert on this). One possibility is to use the cobs package and play with the amount of smoothing... Andy From: Bert Gunter
RSiteSearch("monotone", restr="func") will give you several
packages and
functions for monotone smoothing, including the isoreg()
function in the
standard stats package. You can determine if any of these
does what you
want.
Bert Gunter
Genetech Nonclinical Statistics
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of excalibur
Sent: Thursday, September 06, 2007 8:04 AM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] Monotonic interpolation
Le jeu. 6 sept. ? 09:45, excalibur a ?crit :
Hello everybody, has anyone got a function for smooth monotonic interpolation (splines ...) of a univariate function (like a distribution function for example) ?
approxfun() might be what your looking for. Is the result of approxfun() inevitably monotonic ? -- View this message in context: http://www.nabble.com/Monotonic-interpolation-tf4392288.html#a12524568 Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at 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. ______________________________________________ R-help at 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.
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments,...{{dropped}}