priorRhoPlus: Prior for Pearson's rho restricted to positive values

View source: R/pearson.R

priorRhoPlusR Documentation

Prior for Pearson's rho restricted to positive values

Description

Prior for Pearson's rho restricted to positive values

Usage

priorRhoPlus(rho, kappa = 1, betaA = NULL, betaB = NULL)

Arguments

rho

numeric in (-1, 1) at which the prior needs to be evaluated

kappa

numeric > 0 which provides the scale of

Value

numeric, the density value at rho

Examples

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")

AlexanderLyNL/bstats documentation built on Sept. 11, 2023, 4:10 p.m.