gen.Kinf {gamlss.countKinf}R Documentation

generates a K-inflated distribution from discrete gamlss family

Description

The gen.Kinf() function allows the user to generate d, p, q, and r K-inflated distribution functions plus an extra K-inflated from gamlss.family function for fitting a K-inflated distribution with gamlss.

Usage

gen.Kinf(family = "NO", kinf=1)

Arguments

family

a gamlss.family object, which is used to define the distribution for generating K-inflated model. The distribution families supported by gamlss() can be found in gamlss.family.

kinf

define inflated point in generating K-inflated distribution from discrete gamlss.family

Value

The functions gen.Kinf return d, p, q, and r K-inflated distribution functions and K-inflated distribution from discrete gamlss.family

Author(s)

Saeed Mohammadpour <s.mohammadpour1111@gamlil.com>, Mikis Stasinopoulos <d.stasinopoulos@londonmet.ac.uk>

References

Rigby, R. A. and Stasinopoulos D. M. (2005). Generalized additive models for location, scale and shape,(with discussion),

Appl. Statist.,54, part 3, pp 507-554.

Stasinopoulos D. M., Rigby R.A. and Akantziliotou C. (2006) Instructions on how to use the GAMLSS package in R. Accompanying documentation in the current GAMLSS help files, (see also http://www.gamlss.org/).

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.

Rigby, R. A. and Stasinopoulos D. M. (2010) The gamlss.family distributions, (distributed with this package or see http://www.gamlss.org/)

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.

Examples

# generate one inflated Negative Binomial distribution
gen.Kinf(family =NBI, kinf=1)

# generate one inflated Delaporte distribution
gen.Kinf(family =DEL, kinf=1)

# generate one inflated Sichel distribution
gen.Kinf(family =SICHEL, kinf=1)


[Package gamlss.countKinf version 3.5.1 Index]