Description Usage Arguments Value Note Author(s) Examples
View source: R/rriskDistributions_functions.R
This function provides a GUI for choosing a most appropriate continuous distribution fitted to given data.
1  | fit.cont(data2fit)
 | 
data2fit | 
 numerical vector, data to be fitted.  | 
Returns chosen continuous distribution, estimated parameters and data, on which the fitting is based.
This function is used for defining a Monte-Carlo random variate item
(mcrv) in the rrisk project.
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)
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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.