Description Usage Arguments Details Value Note Author(s) References See Also Examples
The DBURR12()
function defines the discrete Burr type XII distribution, a three parameter discrete distribution, for a gamlss.family
object to be used in GAMLSS fitting using the function gamlss()
.
The functions dDBURR12()
, pDBURR12()
, qDBURR12()
and rDBURR12()
define the density, distribution function, quantile function and random generation for the discrete Burr type XII DBURR12()
, distribution.
1 2 3 4 5 6 7 |
mu.link |
Defines the |
sigma.link |
Defines the |
nu.link |
Defines the |
x |
vector of (non-negative integer) quantiles |
p |
vector of probabilities |
q |
vector of quantiles |
mu |
vector of positive |
sigma |
vector of positive dispersion parameter |
nu |
vector of |
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] |
n |
number of random values to return |
The probability function of the discrete Burr XII distribution is given by
f(y|μ,σ,ν)= (1+(y/μ)^σ)^ν - (1+((y+1)/μ)^σ)^ν
for y=0,1,2,..., mu>0 , σ>0 and nu>0.
Note that the above parametrization is different from Para and Jan (2016).
The function DBURR12()
Returns a gamlss.family
object which can be used to fit a discrete Burr XII distribution in the gamlss()
function.
The parameters of the distributioins are highly correlated so the argument of gamlss
method=mixed(10,100)
may have to be used.
The distribution can be under/over dispersed and also with long tails.
Rigby, R. A., Stasinopoulos D. M., Fernanda De Bastiani.
Para, B. A. and Jan, T. R. (2016). On discrete three parameter Burr type XII and discrete Lomax distributions and their applications to model count data from medical science. Biometrics and Biostatistics International Journal, 54, part 3, pp 507-554.
Rigby, R. A. and Stasinopoulos D. M. (2005). Generalized additive models for location, scale and shape,(with discussion), Appl. Statist., 4, pp 1-15.
Stasinopoulos D. M. Rigby R.A. (2007) Generalized additive models for location scale and shape (GAMLSS) in R. Journal of Statistical Software, Vol. 23, Issue 7, Dec 2007, http://www.jstatsoft.org/v23/i07.
Stasinopoulos D. M., Rigby R.A., Heller G., Voudouris V., and De Bastiani F., (2017) Flexible Regression and Smoothing: Using GAMLSS in R, Chapman and Hall/CRC.
1 2 3 4 5 6 7 8 | DBURR12()#
#plot the pdf using plot
plot(function(y) dDBURR12(y, mu=10, sigma=1, nu=1), from=0, to=100, n=100+1, type="h") # pdf
# plot the cdf
plot(seq(from=0,to=100),pDBURR12(seq(from=0,to=100), mu=10, sigma=1, nu=1), type="h") # cdf
# generate random sample
tN <- table(Ni <- rDBURR12(100, mu=5, sigma=1, nu=1))
r <- barplot(tN, col='lightblue')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.