Plot the densities of the random effects for a Dirichlet Process model
1 2 3 4 |
fit |
the Dirichlet model fit |
params |
the vector indicating the values to plot (either "density.intercept" or "density.slope") |
groups |
list of groups to include in the plot(s) |
xlim |
the limits of the X-axis |
ylim |
the limits of the Y-axis |
colors |
vector of colors for each group |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.