distributions3 (version 0.1.2)

Beta: Create a Beta distribution

Description

Create a Beta distribution

Usage

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(), Erlang(), Exponential(), FisherF(), Frechet(), GEV(), GP(), Gamma(), Gumbel(), LogNormal(), Logistic(), Normal(), RevWeibull(), StudentsT(), Tukey(), Uniform(), Weibull()

Examples

Run this code
# NOT RUN {
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)

mean(X)
variance(X)
skewness(X)
kurtosis(X)

cdf(X, quantile(X, 0.7))
quantile(X, cdf(X, 0.7))
# }

Run the code above in your browser using DataLab