Density, distribution function, quantile function and random generation for the generally--altered, --inflated, --truncated and --deflated logarithmic distribution. Both parametric and nonparametric variants are supported; these are based on finite mixtures of the parent with itself and the multinomial logit model (MLM) respectively. Altogether it can be abbreviated as GAAIITDD--Log(shape.p)--Log(shape.a)--MLM--Log(shape.i)--MLM--Log(shape.d)--MLM.
dgaitdlog(x, shape.p, a.mix = NULL, a.mlm = NULL,
i.mix = NULL, i.mlm = NULL,
d.mix = NULL, d.mlm = NULL, truncate = NULL,
max.support = Inf, pobs.mix = 0, pobs.mlm = 0,
pstr.mix = 0, pstr.mlm = 0,
pdip.mix = 0, pdip.mlm = 0, byrow.aid = FALSE,
shape.a = shape.p, shape.i = shape.p, shape.d = shape.p,
log = FALSE)
pgaitdlog(q, shape.p, a.mix = NULL, a.mlm = NULL,
i.mix = NULL, i.mlm = NULL,
d.mix = NULL, d.mlm = NULL, truncate = NULL,
max.support = Inf, pobs.mix = 0, pobs.mlm = 0,
pstr.mix = 0, pstr.mlm = 0,
pdip.mix = 0, pdip.mlm = 0, byrow.aid = FALSE,
shape.a = shape.p, shape.i = shape.p, shape.d = shape.p,
lower.tail = TRUE)
qgaitdlog(p, shape.p, a.mix = NULL, a.mlm = NULL,
i.mix = NULL, i.mlm = NULL,
d.mix = NULL, d.mlm = NULL, truncate = NULL,
max.support = Inf, pobs.mix = 0, pobs.mlm = 0,
pstr.mix = 0, pstr.mlm = 0,
pdip.mix = 0, pdip.mlm = 0, byrow.aid = FALSE,
shape.a = shape.p, shape.i = shape.p, shape.d = shape.p)
rgaitdlog(n, shape.p, a.mix = NULL, a.mlm = NULL,
i.mix = NULL, i.mlm = NULL,
d.mix = NULL, d.mlm = NULL, truncate = NULL,
max.support = Inf, pobs.mix = 0, pobs.mlm = 0,
pstr.mix = 0, pstr.mlm = 0,
pdip.mix = 0, pdip.mlm = 0, byrow.aid = FALSE,
shape.a = shape.p, shape.i = shape.p, shape.d = shape.p)
Same meaning as in dlog
.
See Gaitdpois
for generic information.
See Gaitdpois
for generic information.
See Gaitdpois
for generic information.
See Gaitdpois
for generic information.
See Gaitdpois
for generic information.
dgaitdlog
gives the density,
pgaitdlog
gives the distribution function,
qgaitdlog
gives the quantile function, and
rgaitdlog
generates random deviates.
The default values of the arguments correspond to ordinary
dlog
,
plog
,
qlog
,
rlog
respectively.
These functions for the logarithmic distribution
are analogous to the Poisson,
hence most details have been put in
Gaitdpois
.
These functions do what
Oalog
,
Oilog
,
Otlog
collectively did plus much more.
gaitdlog
,
Gaitdpois
,
Gaitdzeta
,
multinomial
,
Oalog
,
Oilog
,
Otlog
.
# NOT RUN {
ivec <- c(2, 10); avec <- ivec + 1; shape <- 0.995; xgrid <- 0:15
max.support <- 15; pobs.a <- 0.10; pstr.i <- 0.15
dvec <- 1; pdip.mlm <- 0.05
(ddd <- dgaitdlog(xgrid, shape,
max.support = max.support, pobs.mix = pobs.a,
pdip.mlm = pdip.mlm, d.mlm = dvec,
a.mix = avec, pstr.mix = pstr.i, i.mix = ivec))
# }
# NOT RUN {
dgaitdplot(shape, ylab = "Probability", xlab = "x",
max.support = max.support, pobs.mix = pobs.mix,
pobs.mlm = pobs.mlm, a.mlm = avec, all.lwd = 3,
pdip.mlm = pdip.mlm, d.mlm = dvec, fam = "log",
pstr.mix = pstr.i, i.mix = ivec, deflation = TRUE,
main = "GAITD Combo PMF---Logarithmic Parent")
# }
Run the code above in your browser using DataLab