Description Usage Arguments Details Value References See Also Examples
The function distfamily
prepares the required family object that is employed within
distfit
to estimate the parameters of the specified distribution family.
1 | distfamily(family, bd = NULL, censpoint = NULL)
|
family |
can be one of the following:
|
bd |
optional argument for binomial distributions specifying the binomial denominator |
censpoint |
censoring point for a censored |
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
.
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 |
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). |
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.
disttree.family
, gamlss.family
1 2 | library(disttree)
family <- distfamily(family = NO())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.