Learn R Programming

Rfast (version 1.3)

Random generation for the Beta distribution with shape 1 and shape 2: Random generation for the Beta distribution with shape 1 and shape 2

Description

Random generation for the Beta distribution with shape 1 and shape 2.

Usage

Rbeta(n,a,b)

Arguments

n
The size of the numbers you want for return.
a
Shape 1.
b
Shape 2.

Value

A row vector which is been initialized with beta's numbers.

Details

The function is written in C++ and this is why it is very fast.

See Also

Rnorm,Runif,Rbinom

Examples

Run this code
Rbeta(1000,1,10)

Run the code above in your browser using DataLab