print_prior | R Documentation |
Displays the structure of a prior distribution specification passed to C++ functions. This function is primarily intended for debugging and inspection of the internal representation.
print_prior(p_prior_r)
p_prior_r |
A list specifying the prior distributions, typically
generated by |
This function is mainly used for debugging purposes. It provides a
readable summary of the prior distribution list as received by C++ code.
The input p_prior_r
should be the output of BuildPrior
.
A character vector summarising the prior specification.
p0 <- c(A = 0.15, B = 0.45, mean_v = 2.25, sd_v = 0.15, t0 = 0.2)
p1 <- rep(0.1, 5)
p_prior <- BuildPrior(
p0 = p0,
p1 = p1,
lower = rep(NA, 5),
upper = rep(NA, 5),
dist = rep("tnorm", 5),
log_p = rep(TRUE, 5)
)
print_prior(p_prior)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.