People sometimes ask how they can help with Stan.
If you can program C++, it’s my impression that there’s lots to do.
Below is an example of a project that would be useful that only requires programming in Stan (and some R, I guess).
We can use lowess to fit smoothed curves through data (it will do better than the sort of curve fitting favored by the U.S. government: https://statmodeling.stat.columbia.edu/2020/05/14/so-much-of-academia-is-about-connections-and-reputation-laundering/). But lowess has problems too, first because it’s not Bayesian so it’s difficult to include prior information, get uncertainty estimates, etc., and second because it’s more of a procedure than a model so it’s hard to use it as a component in larger models for example including measurement error, varying coefficients, etc.
This came up in a recent example with polling data where we wanted to fit a smooth curve through some survey estimates over time, and the smooth curve fit by the computer did all sorts of weird things.
For these reasons it would be good to have a “lowess equivalent” in Stan, maybe using splines or Gaussian processes (but not with the scaling problems of Gaussian processes as usually implemented), maybe building off existing options in rstanarm or brms) that would do the following three things:
It would run out of the box using its default settings and produce a smooth curve (a posterior summary such as a pointwise median, along with many posterior draws of the curve) that could in one line be plotted along with the data.
Like lowess, it would have one primary tuning parameter that could be set by the user. (Unlike lowess, this function in its default setting would average over or estimate the tuning parameter from the data.)
The model can include multiple predictors. I’m not sure how general the function should be here. I guess a starting point would be whatever lowess can do in that regard.