print_prior: Print a Joint Prior Distribution

View source: R/RcppExports.R

print_priorR Documentation

Description

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.

Usage

print_prior(p_prior_r)

Arguments

p_prior_r

A list specifying the prior distributions, typically generated by BuildPrior.

Details

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.

Value

A character vector summarising the prior specification.

Examples

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)


ggdmcPrior documentation built on Aug. 8, 2025, 7:13 p.m.