Description Usage Arguments Details Value Author(s) Examples
View source: R/rriskDistributions_functions.R
Fits a univariate distribution by maximum likelihood or by matching moments.
1 2  rriskFitdist.cont(data, distr, method = c("mle", "mme"), start,
chisqbreaks, meancount, ...)

data 
A numerical vector, data to be fitted. 
distr 
A character string 
method 
A character string coding for the fitting method: "mle" for the maximum likelihood estimation and "mme" for the matching moment estimation. 
start 
A named list giving the initial values of parameters of the named
distribution. This argument will not be taken into account if 
chisqbreaks 
A numerical vector defining the breaks of the cell used to
compute the chisquare statistic. If omitted, these breaks are automatically
computed from the data in order to reach roughly the same number of observations
per cell, roughly equal to the argument 
meancount 
The mean number of observations per cell expected for the definition of the breaks of the cells used to compute the chisquared statistic. 
... 
further arguments to be passed to generic function, or to the
function 
This function is an alias of the function fitdist
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, lognormal, logistic, exponential, F,
Student's t, Beta, Cauchy, Weibull, Gamma.
For more details see the assistance page of the function
fitdist
from the package fitdistrplus.
This function is not intended to be called directly but is internally
called in useFitdist
.
rriskFitdist.cont
returns a list containing 19 items with following fitting results:

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

the character string representing the used fitting method ("mle" or "mme"). 

the estimated standard errors or 

the estimated correlation matrix or 

the loglikelihood or 

the Akaike information criterion or 

the BIC or SBC (Schwarz Bayesian criterion) or 

the length of the data set. 

the data set. 

the name of the estimated distribution. 

the Chisquared statistic or 

breaks used to define cells in the chisquare statistic. 

pvalue of the chisquare statistic or 

degree of freedom of the chisquare distribution or 

a table with observed and theoretical counts used for the Chisquared calculations. 

the AndersonDarling statistic or 

the decision of the AndersonDarling test or 

the KolmogorovSmirnov statistic or 

the decision of the KolmogorovSmirnov test or 
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  set.seed(1)
x < stats::rnorm(5000, mean = 10, sd = 5)
rriskFitdist.cont(x, "norm")
rriskFitdist.cont(x, "t")

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