distfamily {disttree}R Documentation

Preparation of family list as required in distexfit

Description

The function distfamily prepares the required family list in distexfit from the handed over family object (which can already be a list as well).

Usage

  distfamily(family, bd = NULL, censpoint = NULL) 

Arguments

family

can be one of the following: gamlss.family object, gamlss.family function, character string with the name of a gamlss.family object, function generating a list with the required information about the distribution, character string with the name of a function generating a list with the required information about the distribution, list with the required information about the distribution, character string with the name of a distribution for which a list generating function is provided in disttree

bd

binomial denominator

censpoint

censoring point for a censored gamlss.family object

Details

The function distfamily is applied in distexfit and generates a list of class distfamily. If family is a gamlss.family object the function distfamily_gamlss is calles within distfamily.

Value

distfamily returns a list with the following components:

family.name

family.name

ddist

ddist,

sdist

sdist,

hdist

hdist,

pdist

pdist,

qdist

qdist,

rdist

rdist,

link

link,

linkfun

linkfun,

linkinv

linkinv,

linkinvdr

linkinvdr,

startfun

startfun,

mle

mle,

gamlssobj

gamlssobj,

censored

censored,

censpoint

censpoint (only if censored and gamlssobj),

censtype

censtype (only if censored and gamlssobj)

References

Stasinopoulos DM, Rigby RA (2007). Generalized Additive Models for Location Scale and Shape (GAMLSS) in R, Journal of Statistical Software, 23(7), 1-46. doi: 10.18637/jss.v023.i07

Venables WN, Ripley BD (2002). Modern Applied Statistics with S. 4th Edition. Springer-Verlag, New York.

See Also

gamlss.family

Examples

library(disttree)
family <- distfamily(family = NO())

[Package disttree version 0.1-0 Index]