distfamily: Preparation of family object of class 'disttree.family' as...

Description Usage Arguments Details Value References See Also Examples

View source: R/distfamily.R

Description

The function distfamily prepares the required family object that is employed within distfit to estimate the parameters of the specified distribution family.

Usage

1
  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 family object with the required information about the distribution, character string with the name of a function generating a family object 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 family generating function is provided in disttree

bd

optional argument for binomial distributions specifying the binomial denominator

censpoint

censoring point for a censored gamlss.family object

Details

The function distfamily is applied within distfit, disttree, and distforest. It generates a family object of class disttree.family. If family is a gamlss.family object the function distfamily_gamlss is called within distfamily.

Value

distfamily returns a family object of class disttree.family in form of a list with the following components:

family.name

character string with the name of the specified distribution family

ddist

density function of the specified distribution family.

sdist

score function (1st partial derivatives) of the specified distribution family.

hdist

hessian function (2nd partial derivatives) of the specified distribution family.

pdist

distribution function of the specified distribution family.

qdist

quantile function of the specified distribution family.

rdist

random generation function of the specified distribution family.

link

character strings of the applied link functions.

linkfun

link functions.

linkinv

inverse link functions.

linkinvdr

derivative of the inverse link functions.

startfun

function generating the starting values for the employed optimization.

mle

logical. Indicates whether a closed form solution exists (TRUE) for the maximum-likelihood optimization or whether a numerical optimization should be employed to estimate parameters (FALSE).

gamlssobj

logical. Indicates whether the family has been obtained from a gamlss.family object.

censored

logical. Indicates whether the specified distribution family is censored.

censpoint

numeric. Censoring point (only if censored and gamlssobj),

censtype

character. Type of censoring ("left", "right") (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

disttree.family, gamlss.family

Examples

1
2

disttree documentation built on Aug. 14, 2019, 3 a.m.