-
Notifications
You must be signed in to change notification settings - Fork 20
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
One approach for full uncertainty propagation of general brms models #3
Comments
HAHAHA - oh no - I realized I linked to the wrong repo for issues! HAHAHAHAHAHA Can you repost over here - https://github.com/jebyrnes/bayesian_sem/issues - and I'll fix the links |
Huh - does brms_response_sequence() go through and put the relationships in order? We have something for that in piecewiseSEM - getSortedPsem() https://github.com/jslefche/piecewiseSEM/blob/5f2246375f98b926c2d603ef655c49a59af6226b/R/helpers.R#L696 - which turns a model list (like a bf!) into a DAG and then sorts it. We might have gakked the code from ggm... https://github.com/jslefche/piecewiseSEM/blob/5f2246375f98b926c2d603ef655c49a59af6226b/R/getDAG.R#L53 But I think something like this could then automate fitting. I have a package called But - I wonder if this would be easy enough to take what you've done and adapt it to the keeley example........ I'd 100% put it in the tutorial |
Hrm. Kinda works, but, difference in density........ load all libraries from tutorial and SBC and....
|
As you show in the tutorial,
brms
's predict functions aren't very easy to use for models with many levels of dependencies. It seems like you worked things out by hand for one particular example, so I thought you might be interested in an automatic way of producing predictive draws of general brms models. I implemented one approach for purposes of dataset generation in theSBC
package, here.Of course installing a whole unrelated package might be a bit too much just for this, but it may give you some ideas in case you want to make your own implementation (for instance there's the
brms_response_sequence
function which figures out the model's DAG from the formula).The text was updated successfully, but these errors were encountered: