addPriorGroups {causact} | R Documentation |
Group together latent parameters by prior distribution.
Description
Add a column to a tidy dataframe of draws that groups parameters by their prior distribution. All parameters with the same prior distribution receive the same index.
Usage
addPriorGroups(drawsDF)
Arguments
drawsDF |
the dataframe created by |
Value
a tidy dataframe of posterior draws. Useful for passing to dagp_plot()
or for creating plots using ggplot()
.