betafunctions (version 1.4.0)

rBeta.4P: 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 first shape parameter.

beta

The second shape parameter.

Value

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

Examples

Run this code
# NOT RUN {
# Assume some variable follows a four-parameter beta distribution with
# location parameters l = 0.25 and u = .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 = .25, u = .75, alpha = 5, beta = 3)
# }

Run the code above in your browser using DataLab