priorRhoPlus | R Documentation |
Prior for Pearson's rho restricted to positive values
priorRhoPlus(rho, kappa = 1, betaA = NULL, betaB = NULL)
rho |
numeric in (-1, 1) at which the prior needs to be evaluated |
kappa |
numeric > 0 which provides the scale of |
numeric, the density value at rho
priorRhoPlus(0.4)
priorRhoPlus(-0.4)
rhoDomain <- seq(-0.99, 0.99, by=0.01)
# kappa <- 2, e.g., beta(1/2, 1/2), is needed for information consistency
yLine <- priorRhoPlus(rhoDomain, kappa=2)
graphics::plot(rhoDomain, yLine, type="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.