rBeta.4P: Random Number Generation under the Four-Parameter Beta...

View source: R/betafunctions.R

rBeta.4PR Documentation

Random Number Generation under the Four-Parameter Beta Probability Density Distribution.

Description

Function for generating random numbers from a specified Four-Parameter Beta Distribution.

Usage

rBeta.4P(n, l, u, alpha, beta)

Arguments

n

Number of draws.

l

The first (lower) location parameter.

u

The second (upper) location parameter.

alpha

The alpha (first) shape parameter.

beta

The beta (second) shape parameter.

Value

A vector with length n of random values drawn from the Four-Parameter Beta Distribution.

Examples

# Assume some variable follows a four-parameter Beta distribution with
# location parameters l = 0.25 and u = 0.75, and shape parameters alpha = 5
# and beta = 3. To draw a random value from this distribution using
# rBeta.4P():
rBeta.4P(n = 1, l = 0.25, u = 0.75, alpha = 5, beta = 3)

betafunctions documentation built on May 29, 2024, 1:13 a.m.