rbeta2: Generate random number(s) from a beta distribution with...

Description Usage Arguments Details Value See Also

View source: R/rbeta2.R

Description

rbeta2 converts the mean and stdev to appropriate shape parameters and calls rbeta. It has similar functionality to betaval but is faster.

Usage

1
rbeta2(n, mean, sdev)

Arguments

n

number of random deviates desired

mean

mean of the distribution (must be in (0,1))

sdev

standard deviation of the distribution. Limits depend on the value of mean

Details

All arguments must be scalars.

Value

a vector of length n with the random numbers

See Also

rbeta and betaval


BruceKendall/PVA documentation built on Jan. 23, 2021, 2:56 a.m.