Make_standata() for new data?

The make_standata() function is a helpful complement to the make_stancode() function. Is there a recommended approach for making new stan data (e.g., for prediction)? This would be especially helpful when thinking about how the stan data for things like splines are created.

use standata(model, newdata = newdata)

1 Like