R Under development (unstable) (2024-07-10 r86888 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(fitdistrplus) Loading required package: MASS Loading required package: survival > library(actuar) Attaching package: 'actuar' The following objects are masked from 'package:stats': sd, var The following object is masked from 'package:grDevices': cm > > set.seed(1234) > > n <- 1e3 > x <- rinvtrgamma(n, 2, 2, scale=2) > > fitdistrplus:::startarg_invtransgamma_family(x, "invtrgamma") $shape1 [1] 7.953247 $shape2 [1] 1.002587 $scale [1] 0.08437106 > > fitdistrplus:::startarg_invtransgamma_family(x, "invgamma") $shape [1] 6.337193 $scale [1] 9.270968 > > fitdistrplus:::startarg_invtransgamma_family(x, "invweibull") $shape [1] 1.343112 $scale [1] 3.017919 > > fitdistrplus:::startarg_invtransgamma_family(x, "invexp") $rate [1] 1.49026 > > fitdist(x, "invtrgamma") Fitting of the distribution ' invtrgamma ' by maximum likelihood Parameters: estimate Std. Error shape1 2.159634 0.4936253 shape2 1.966441 0.2537561 scale 2.081728 0.3756215 > fitdist(x, "invgamma") Fitting of the distribution ' invgamma ' by maximum likelihood Parameters: estimate Std. Error shape 7.37055 0.3224364 scale 10.98425 0.4972652 > fitdist(x, "invweibull") Fitting of the distribution ' invweibull ' by maximum likelihood Parameters: estimate Std. Error shape 3.038200 0.07291360 scale 1.331348 0.01463207 > fitdist(x, "invexp") Fitting of the distribution ' invexp ' by maximum likelihood Parameters: estimate Std. Error rate 0.6710249 0.02121956 > > > proc.time() user system elapsed 1.79 0.42 2.20