Description Usage Arguments Details Value References See Also Examples
The function distfit
carries out maximum-likelihood
estimation of parameters for a specified distribution family,
for example from the GAMLSS family (for generalized additive
models for location, scale, and shape). The parameters can be
transformed through link functions but do not depend on further
covariates (i.e., are constant across observations).
1 2 3 |
y |
numeric vector of the response |
family |
specification of the response distribution.
Either a |
weights |
optional numeric vector of case weights. |
start |
starting values for the distribution parameters handed over to |
start.eta |
starting values for the distribution parameters on the link scale handed over to |
vcov |
logical. Specifies whether or not a variance-covariance matrix should be calculated and returned. |
type.hessian |
Can either be 'checklist', 'analytic' or 'numeric' to decide how the hessian matrix should be
calculated in the fitting process in |
method |
Optimization which should be applied in |
estfun |
logical. Should the matrix of observation-wise score contributions (or empirical estimating functions) be returned? |
optim.control |
A list with |
... |
further arguments passed to |
The function distfit
fits distributions,
similar to fitdistr
from MASS (Venables and Ripley 2002)
but based on GAMLSS families (Stasinopoulos and Rigby 2007).
Provides analytical gradients and hessian, can be plugged into
mob
.
The resulting object of class distfit
comes with a set of
standard methods to generic functions including coef
, estfun
, vcov
, predict
and logLik
.
distfit
returns an object of class distfit
which is a list with
the following components:
npar |
number of parameter |
y |
numeric vector of the response |
ny |
number of observations |
weights |
numeric vector of case weights handed over as input argument |
family |
employed distribution family list of class |
start |
used starting values in |
starteta |
starting values on the link scale used in |
opt |
list returned by |
converged |
logical. TRUE if |
par |
fitted distribution parameters (on parameter scale) |
eta |
fitted distribution parameters (on link scale) |
hess |
hessian matrix |
vcov |
variance-covariance matrix |
loglik |
value of the maximized log-likelihood function |
call |
function call |
estfun |
matrix with the scores for the estimated parameters. Each line represents an observation and each column a parameter. |
ddist |
density function with the estimated distribution parameters already plugged in |
pdist |
probability function with the estimated distribution parameters already plugged in |
qdist |
quantile function with the estimated distribution parameters already plugged in |
rdist |
random number generating function with the estimated distribution parameters already plugged in |
method |
optimization method applied in |
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.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.