Beta: Create a Beta distribution

Description Usage Arguments Value See Also Examples

View source: R/Beta.R

Description

Create a Beta distribution

Usage

1
Beta(alpha = 1, beta = 1)

Arguments

alpha

The alpha parameter. alpha can be any value strictly greater than zero. Defaults to 1.

beta

The beta parameter. beta can be any value strictly greater than zero. Defaults to 1.

Value

A beta object.

See Also

Other continuous distributions: Cauchy, ChiSquare, Exponential, FisherF, Gamma, LogNormal, Logistic, Normal, StudentsT, Tukey, Uniform, Weibull

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
set.seed(27)

X <- Beta(1, 2)
X

random(X, 10)

pdf(X, 0.7)
log_pdf(X, 0.7)

cdf(X, 0.7)
quantile(X, 0.7)

cdf(X, quantile(X, 0.7))
quantile(X, cdf(X, 0.7))

distributions3 documentation built on Sept. 3, 2019, 5:06 p.m.