Fitting a known piecewise linear function with unknown offset

One thing I forgot to add is people use “changepoint model” in at least two sense:

  1. A discrete change point (as in the Stan user’s guid example @mike-lawrence mentioned).

  2. Fitting a function that is defined piecewise (this is IMHO closer to what you care about). A general approach using sigmoids to smooth-out transitions between piecewise linear functions is described at: Piecewise Linear Mixed Models With a Random Change Point and Simpler Change Point Models?

1 Like