rbeta_ab: The Beta distribution

View source: R/utils-beta.R

rbeta_abR Documentation

The Beta distribution

Description

The Beta distribution

Usage

rbeta_ab(n, prior, sd, min, max)

dbeta_ab(x, prior, sd, min, max)

Arguments

n

The number of random values you want in the returned vector.

prior

Prior value

sd

Standard deviation

min

Minimum value

max

Maximum value

x

X value for distribution

Details

Random generation for the Beta distribution with parameters based on the mean and standard deviation as well as the ranges as implemented in CASAL. This formulation is also available on Wikipedia. This function is a direct copy of the code available from Wetzel and Punt.

Value

A vector of doubles, where the length of the vector depends on the length of x value passed to n. dbeta_ab returns density estimates for each input value and rbeta_ab provides random deviates from the Beta distribution.


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.