-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to change data passed via stanvars in brms backend per dataset #90
Comments
Generated datasets and backend objects don't interact until Maybe scan for the proposed attribute in |
Not 100% sure what your aim is - do you need to do SBC for such model (and thus a workaround would be enough) or do you want to implement this to contribute for others? If you just need to run the SBC and if the actual Stan code is fixed, and the only changes via If the actual Stan code changes between than this is not supported and I don't think it would be sensible to support this - you can either run separate SBC for each version of the Stan code or modify the Stan code so that all the decisions are done at runtime based on data. If you want to implement this, than my hunch is that a sensible design would be:
Does that make sense? |
I had to do this a while ago, but coming across this issue got me thinking about how it would be implemented so I don't have to use workarounds in case the need arises again. You're definitely right, there's more sensible ways of achieving what I had in mind, thank you for the insights! |
Likely add an attribute to the data.frame in generated to pass this extra data.
Can be currently worked around by doing the conversion from brms to Stan model/data yourself and using a pure Stan backend.
The text was updated successfully, but these errors were encountered: