fitDist function

Distribution fitting

Distribution fitting

Uses Nelder-Mead simplex algorithm to minimize fitting norms.

fitDist( data, dist, n.points, norm, constrain, opts = list(algorithm = "NLOPT_LN_NELDERMEAD", xtol_rel = 1e-08, maxeval = 10000) )

Arguments

  • data: value to be fitted
  • dist: name of the distribution to be fitted
  • n.points: number of points to be subsetted from ecdf
  • norm: norm used for distribution fitting - id ('N1', 'N2', 'N3', 'N4')
  • constrain: logical - constrain shape2 parametes for finite tails
  • opts: minimization options

Examples

x <- fitDist(rnorm(1000), 'norm', 30, 'N1', FALSE) x

Other functions in CoSMoS

Related functions from the same R package