You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure that this should actually go into bayesplot but I figure the people who would be interested and able to do something like this would read bayesplot issues.
I think it would be good if we could draw Directed Acyclic Graphs (DAGs) for models that can be represented by DAGs. We can't do that just from posterior draws or even from Stan code (in general), but I hope we could render a DAG that a user expressed (or maybe generate them from syntax in brms / rstanarm / other packages).
The ggdagpackage is nice but is focused on identification of causal effects rather than a description of the generative process. It doesn't seem to have a great way of representing parameters, but maybe that could be added with a PR. PyMC3 recently added something like this, although I don't like some things about the formatting. I think WinBUGS established a convention of using rectangles for observables and ovals for unobservables. Also, I'm not sure I like the foo ~ Distribution being part of the node label. Maybe we could use different colors for each node and put the distributional assumptions into the key?
Anyway, if people have other ideas, we can discuss them here.
The text was updated successfully, but these errors were encountered:
But I don't know how its DAG building is implemented, but the plotting uses DiagrammeR. I've used to DiagrammeR convert lavaan SEM models into graphs. DiagrammeR builds graphs from dataframes, so the main task would be to have a language that describe interrelations among model parameters and then use that build a dataframe for plotting.
Those greta DAGs are not bad, although I don't know how tied they are to
the rest of greta. The ggdag package has a formula-based interface for
specifying arrows going into a node, but I don't know how easy it would be
to extend that to something like `y ~ normal(mu, sigma)`.
I'm not sure that this should actually go into bayesplot but I figure the people who would be interested and able to do something like this would read bayesplot issues.
I think it would be good if we could draw Directed Acyclic Graphs (DAGs) for models that can be represented by DAGs. We can't do that just from posterior draws or even from Stan code (in general), but I hope we could render a DAG that a user expressed (or maybe generate them from syntax in brms / rstanarm / other packages).
The ggdag package is nice but is focused on identification of causal effects rather than a description of the generative process. It doesn't seem to have a great way of representing parameters, but maybe that could be added with a PR. PyMC3 recently added something like this, although I don't like some things about the formatting. I think WinBUGS established a convention of using rectangles for observables and ovals for unobservables. Also, I'm not sure I like the
foo ~ Distribution
being part of the node label. Maybe we could use different colors for each node and put the distributional assumptions into the key?Anyway, if people have other ideas, we can discuss them here.
The text was updated successfully, but these errors were encountered: