Description Usage Arguments Details Value Author(s) Examples
View source: R/rriskDistributions_functions.R
Fits a univariate distribution by maximum likelihood.
1 2 
data 
A numerical vector for non censored data or a dataframe of two columns respectively named left and right, describing each observed value as an interval for censored data. In that case the left column contains either NA for left censored observations, the left bound of the interval for interval censored observations, or the observed value for noncensored observations. The right column contains either NA for right censored observations, the right bound of the interval for interval censored observations, or the observed value for noncensored observations. 
distr 
A character string "name" naming a distribution (or directly the density function) for which the corresponding density function dname and the corresponding distribution pname must be classically defined. The possible values are: "norm", "exp", "lnorm", "logis", "gamma", "weibull", "beta", "chisq", "t", "f", "cauchy", "gompertz". 
start 
A named list giving the initial values of parameters of the named distribution. This argument may be omitted for some distributions for which reasonable starting values are computed (see details). 
optim.method 
"default" (see details) or optimization method to pass to 
lower 
Left bounds on the parameters for the "LBFGSB" method (see 
upper 
Right bounds on the parameters for the "LBFGSB" method (see 
custom.optim 
a function carrying the MLE optimization (see details). 
... 
further arguments passed to the 
This function is an alias of the function mledist
from the package
fitdistrplus (Version 0.12). The original function was extended to
fitting additional distributions. The following continuous distributions can
be fitted by this function: normal, exponential, lognormal, logistic, gamma,
Weibull, Beta, chisquare, Student's t, F, Cauchy, Gompertz and triangular.
And the following discrete distributions can be fitted: (wird ergaenzt).
For more details see the assistance page of the function
mledist
from the package fitdistrplus.
This function is not intended to be called directly but is internally
called in rriskFitdist.cont
.
rriskMLEdist
returns a list with fitting results containing following informations

numeric, a single value or a vector containing estimated parameters. 

an integer code for the convergence of 

the loglikelihood 

a symmetric matrix computed by 

the name of the optimization function used for maximum likelihood. 
Matthias Greiner [email protected] (BfR),
Kristin Tolksdorf [email protected] (BfR),
Katharina Schueller [email protected] (STATUP Statistical Consulting),
Natalia Belgorodski [email protected] (STATUP Statistical Consulting),
MarieLaure DelignetteMuller (coauthor of the package fitdistrplus),
Christophe Dutang (coauthor of the package fitdistrplus)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  ## a basic fit of some distribution with maximum likelihood estimation
set.seed(1)
x2 < rchisq(500, 4)
rriskMLEdist(x2, "norm")
rriskMLEdist(x2, "exp")
rriskMLEdist(x2, "lnorm")
rriskMLEdist(x2, "logis")
rriskMLEdist(x2, "gamma")
rriskMLEdist(x2, "weibull")
#rriskMLEdist(x2, "beta")
rriskMLEdist(x2, "chisq")
rriskMLEdist(x2, "t")
rriskMLEdist(x2, "f")
rriskMLEdist(x2, "cauchy")
rriskMLEdist(x2, "gompertz")
## produces an error:
# rriskMLEdist(x2, "triang")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.