I would like to recover the knots and/or spline basis used in a brms run as indicated in the stancode associated with the run. How can this be done?
Sorry for letting your question fall through a bit.
brms uses the
mgcv package to build the spline basis, so you should be able to find the method there. Alternatively, you can use
make_standata to inspect the data that is passed to Stan and extract the basis from there…
Best of luck with your model!
Thanks for your reply.