betasample: generate samples from the Beta distribution

Description Usage Arguments Value Examples

View source: R/betasample.R

Description

a function to generate random samples from the Beta distribution by the acceptance-rejection method

Usage

1
betasample(n, a, b)

Arguments

n

number of observations

a, b

non-negative parameter of the Beta distribution

Value

the random samples of size n

Examples

1
2
3
4
5
## Not run: 
sample=betasample(1000,3,2)
plot(sample)

## End(Not run)

zhzhy1/StatComp18054 documentation built on May 25, 2019, 5:01 a.m.