Posts

Showing posts from January, 2025

Theoretical Result from Fritsch and Carlson - and a Modified Harmonic Mean Method

I remember wondering why Judy Butland's method always preserved monotonicity.  I came across work by Fritsch and Carlson which provided the answer (Fritsch, F.N. and Carlson, R.E. (1980) Monotone Piecewise Cubic Interpolation, SIAM J Numer Anal, Vol 17, No 2, pp 238 - 246).  They showed that a sufficient condition for monotonicity was that the estimate of the slopes at the end-points of a cubic piece should be limited by the size of the slopes of the straight lines joining adjacent points.  Specifically, at a data point, if m 1 and m 2 be the slopes of the chords, then the estimated slope, m, must satisfy 0<=m/m 1 <3 and 0<=m/m 2 <3 (this is a weaker result than they derived, but it is more usable)   For Butland's harmonic mean method, we have 0<=m/m 1 <2 and 0<=m/m 2 <2 - so the Fritsch-Carlson conditions are satisfied with a bit to spare. It worried me a bit that the harmonic mean did not make any allowance for the spacing of the da...

Improving the Plots in Blogger - Cost-effectiveness and Peak Datasets - Osculatory, Ellis/McLain, Akima, Butland, Modified Butland Methods

Blogger only allows upload of images, whereas I really want to include vector graphics. SVG would be ideal, but I have found a post on how to include PDF... so here goes. The post is: https://sites.google.com/a/gapps.uwcsea.edu.sg/dover-primary-ict/resources/embed-a-pdf-into-blogger The solution is as follows: - Export the PDF from the R plot pane, with the required size - Save the PDF in Google Drive - Open the file in Google Drive (using Quick Actions in the Open menu) - Select 'Embed item' from the vertical dots menu - Copy and paste the iframe HTML code into the post in Blogger, making sure the post is in HTML mode, not Compose mode - The PDF is then visible in Preview mode To get a nice appearance, it has proved necessary to edit the height (here 2600) and width (here 460), using trial and error ;).  I also combined the separate PDFs into one, using Mac OS Preview tool. The datasets are as follows.  The cost-effectiveness dataset is: ...

Judy Butland and her Harmonic Mean Method

Image
 Judy Butland contacted me after the conference to tell me about a method she had developed for her Simpleplot package, which was marketed by BUSS, a spin-off from Bradford University which she set up together with her husband, David.  She designed this as a parametric piecewise cubic, but with the nice property that it generated single-valued curves from single-valued data (unlike other parametric methods).  The method is very simple: the slope at a data point is estimated as the harmonic mean of the slopes of the straight lines to adjacent data points; if the slopes have opposite signs, then the estimated slope is set to zero.   She kindly sent me the output she obtained from running her code on the two example data sets.  Here are the graphs.  Notice that the graphs are monotonic between data points, with extrema at points where the slopes change sign. It was completely straightforward to pick up Judy's basic idea and apply it to non-parametric curv...