dgBetaD {sgr} | R Documentation |
Generalized Beta distribution for discrete variables
Description
Generalized Beta distribution for discrete variables.
Usage
dgBetaD(x, a = min(x), b = max(x), gam = 1, del = 1, ct = 1)
Arguments
x |
Vector of quantilies. |
a |
Minimum of range of r.v. |
b |
Maximum of range of r.v. |
gam |
Gamma parameter. |
del |
Delta parameter. |
ct |
Correction term, default value: 1. |
Details
Let be a discrete r. v. with range
and where and
. The Generalized Discrete Beta Distribution for the r.v.
is defined as follows:
where is a modified version of the generalized beta distribution
dgBeta
defined as
Value
Gives the density.
Author(s)
Massimiliano Pastore & Luigi Lombardi
References
Lombardi, L., Pastore, M. (2014). sgr: A Package for Simulating Conditional Fake Ordinal Data. The R Journal, 6, 164-177.
Pastore, M., Lombardi, L. (2014). The impact of faking on Cronbach's Alpha for dichotomous and ordered rating scores. Quality & Quantity, 48, 1191-1211.
See Also
Examples
x <- 1:7
GA <- c(1,3,1.5,8); DE <- c(1,3,4,2.5)
par(mfrow=c(2,2))
for (j in 1:4) {
plot(x,dgBetaD(x,gam=GA[j],del=DE[j]),type="h",
panel.first=points(x,dgBetaD(x,gam=GA[j],del=DE[j]),pch=19),
main=paste("gamma=",GA[j]," delta=",DE[j],sep=""),ylim=c(0,.6),
ylab="dgBetaD(x)")
}