fit.cont: GUI for fitting continuous distributions to given data

Description Usage Arguments Value Note Author(s) Examples

Description

This function provides a GUI for choosing a most appropriate continuous distribution fitted to given data.

Usage

1
fit.cont(data2fit)

Arguments

data2fit

numerical vector, data to be fitted.

Value

Returns chosen continuous distribution, estimated parameters and data, on which the fitting is based.

Note

This function is used for defining a Monte-Carlo random variate item (mcrv) in the rrisk project.

Author(s)

Matthias Greiner matthias.greiner@bfr.bund.de (BfR),
Kristin Tolksdorf kristin.tolksdorf@bfr.bund.de (BfR),
Katharina Schueller schueller@stat-up.de (STAT-UP Statistical Consulting),
Natalia Belgorodski belgorodski@stat-up.de (STAT-UP Statistical Consulting)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
  if ( class(tcltk::tclRequire("Tktable")) == "tclObj" ) {
    res1 <- fit.cont(data2fit = rgamma(374, 4, 0.08))
    res1

    res2 <- fit.cont(data2fit = rbeta(300, shape1 = 1, shape2 = 2))
    res2

    res3 <- fit.cont(data2fit = mc2d::rtriang(300, min = 1, mode = 3, max = 10))
    res3

    res4 <- fit.cont(data2fit = stats::rnorm(300))
    res4
  }

## End(Not run)


Search within the rriskDistributions package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.