Hello,
Given a model bf( y ~ s(ti)), how can i find the value of k chosen by brms(or i guess mgcv::s) ?
Looking at the generated Stan file, it appears it is passed to Stan (and not estimated by Stan). Is my understanding correct?
You may infer it from the number of columns of the Zs_* elements returned by make_standata, but this doesn’t work in the same way for all kinds of splines, so I would be careful with it.