Tutorial R
Terdapat empat fungsi untuk menangani distribusi beta dalam pemrograman R yakni: dbeta(), pbeta(), qbeta(), dan rbeta().
Suatu peubah acak kontinu \(X\) dikatakan berdistribusi beta dengan parameter \(α>0\) dan \(β>0\) jika fungsi kepadatan peluangnya diberikan oleh
Terdapat empat fungsi untuk menangani distribusi beta dalam pemrograman R yakni: dbeta()
, pbeta()
, qbeta()
, dan rbeta()
.
dbeta(x, shape1, shape2, ncp = 0, log = FALSE)
pbeta(q, shape1, shape2, ncp = 0, lower.tail = TRUE, log.p = FALSE)
qbeta(p, shape1, shape2, ncp = 0, lower.tail = TRUE, log.p = FALSE)
rbeta(n, shape1, shape2, ncp = 0)
x, q | vector of quantiles. |
p | vector of probabilities. |
n | number of observations. If length(n) > 1 , the length is taken to be the number required. |
shape1, shape2 | non-negative parameters of the Beta distribution. |
ncp | non-centrality parameter. |
log, log.p | logical; if TRUE, probabilities p are given as log(p). |
lower.tail | logical; if TRUE (default), probabilities are P[X ≤ x], otherwise, P[X > x]. |
Never leave ’till tomorrow which you can do today.
Benjamin Franklin