plot_marginal_prior {makemyprior} | R Documentation |
Plotting prior for a single parameter (weight or variance (not standard deviation))
Description
Following the parameterization of the prior.
Usage
plot_marginal_prior(x, obj, param, sd = FALSE)
Arguments
x |
Values to evaluate prior in. |
obj |
An object from |
param |
Name of parameter to plot (see |
sd |
Whether to plot variance parameters on the standard deviation ( |
Value
A ggplot with the posterior distribution. See also makemyprior_plotting.
Examples
ex_prior <- makemyprior_example_model()
plot_marginal_prior(seq(0, 1, 0.001), ex_prior, "w[a/a_b]")
plot_marginal_prior(seq(0, 1, 0.001), ex_prior, "w[eps/eps_a_b]")
plot_marginal_prior(seq(0, 5, 0.01), ex_prior, "V[eps_a_b]")
[Package makemyprior version 1.2.1 Index]