draw.beta.alphabeta.less.than.one: Generates variates from Beta distribution with...

Description Usage Arguments Value References Examples

View source: R/draw.beta.alphabeta.less.than.one.R

Description

This function implements pseudo-random number generation for a Beta distribution for \max(α,β)<1 with pdf

f(x|α,β)=\frac{1}{B(α,β)}x^{α-1}(1-x)^{β-1}

for 0 ≤q x ≤q 1, 0 < α < 1, and 0 < β < 1 where α and β are the shape parameters and B(α,β) is the complete beta function.

Usage

1

Arguments

nrep

Number of data points to generate.

alpha

First shape parameter. Must be less than 1.

beta

Second shape parameter. Must be less than 1.

Value

A list of length five containing generated data, the theoretical mean, the empirical mean, the theoretical variance, and the empirical variance with names y, theo.mean, emp.mean, theo.var, and emp.var, respectively.

References

Jhonk, M. D. (1964). Erzeugung von betaverteilter und gammaverteilter zufallszahlen. Metrika, 8, 5-15.

Examples

1
draw.beta.alphabeta.less.than.one(nrep=100000,alpha=0.7,beta=0.4)

UnivRNG documentation built on March 6, 2021, 1:08 a.m.