Closed venpopov closed 7 months ago
Similarly with make_stancode and make_standata
The question to me is, if we would have to ask Paul if he would change the get_prior
function into a method in brms
or if we can do so independently? A second point is that the arguments passed to get_prior
are different when calling it for a brms
versus a bmm
model (e.g. brms requires family
, in bmm you call model
). I do not have an intuition how much of a problem that is. If not than having it as a method either calling the brms
version for any regular model called by brms
and then our bmm
version for any bmmmodels
would be great.
I know brms already has a get_prior() function.
But we can make a get_prior() into an S3 method, that has
get_prior.default() method:
and a method
that way we have just one function that works with both bmm and brms and makes it simpler and more intuitive for people used to the get_prior() from brms