v0.3 of the “pricesensitivitymeter” R package expands the functionality for interpolation between price points. If the sample size is small or price information in some areas of the price curve is sparse, the package now is able to use linear interpolation between price points to make the price curves appear less bumpy.

The option is by default set to FALSE, but can easily be switched on:

output <- psm_analysis(toocheap, cheap, expensive, tooexpensive, interpolate = TRUE)

The package also contains a vignette (“Interpolation in Small Samples”) that explains how the function works.