Learn R Programming

RGAP (version 0.1.1)

.meanStd2Beta: Converts the mean and standard deviation of a (possibly scaled) Beta-distributed variable into the two shape parameters \(\alpha\) and \(\beta\).

Description

Converts the mean and standard deviation of a (possibly scaled) Beta-distributed variable into the two shape parameters \(\alpha\) and \(\beta\).

Usage

.meanStd2Beta(m, std, lb = 0, ub = 1)

Value

A vector with shape parameters \(\alpha\) and \(\beta\).

Arguments

m

mean parameter

std

standard deviation

lb

lower bound

ub

upper bound