beta_plot: Draw values from a beta distribution and plot the probability...

Description Usage Arguments Details See Also Examples

Description

Draw values from a beta distribution and plot the probability density function

Usage

1
beta_plot(n = 10000, a = 1, b = 3)

Arguments

n

number of observations to draw

a

non-negative alpha parameter of the beta distribution

b

non-negative beta parameter of the beta distribution

Details

The Beta distribution with parameters a and b has density:

Γ(a+b)/(Γ(a)Γ(b))x^(a-1)(1-x)^(b-1)

for a > 0, b > 0 and 0 ≤ x ≤ 1.

See Also

rbeta, geom_density

Examples

1
2
# Draw from beta distribution with parameters a = 1 and b = 3
beta_plot(a = 1, b = 3)

christophergandrud/NewPackage documentation built on May 5, 2019, 8:01 p.m.