sbeta: The Beta Distribution

Description Usage Arguments Value See Also Examples

View source: R/beta.R

Description

Descriptive statistics for the Beta distribution with parameters shape1 and shape2.

Usage

1
2
sbeta(shape1, shape2, statistic = c("all", "mean", "median", "sd", "var",
  "skew", "kurt"))

Arguments

shape1, shape2

non-negative parameters of the Beta distribution

statistic

desired descriptive statistic

Value

named numeric vector

See Also

Beta

https://en.wikipedia.org/wiki/Beta_distribution

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Jeffreys' Prior
curve(dbeta(x, 0.5, 0.5))
sbeta(0.5, 0.5)

curve(dbeta(x, 5, 1))
sbeta(5, 1)

curve(dbeta(x, 1, 3))
sbeta(1, 3)

curve(dbeta(x, 2, 2))
sbeta(2, 2)

curve(dbeta(x, 2, 5))
sbeta(2, 5)

# Bayesian prior
curve(dbeta(x, 1, 1))
sbeta(1, 1)

schuelkem/sdist documentation built on Nov. 5, 2019, 8:45 a.m.