R Under development (unstable) (2023-08-27 r85021 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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(mbbefd) Loading required package: fitdistrplus Loading required package: MASS Loading required package: survival Loading required package: alabama Loading required package: numDeriv Loading required package: Rcpp Package: mbbefd Version: 0.8.11 Date: BugReport: https://github.com/spedygiorgio/mbbefd/issues > library(fitdistrplus) > > n <- 1e3 > nboot <- 1000 > nboot <- 10 > set.seed(123456) > x <- rMBBEFD(n, 8, 1/4) > > system.time(f1 <- fitDR(x, "MBBEFD")) user system elapsed 0.31 0.00 0.31 > > summary(f1) Fitting of the distribution ' MBBEFD ' by maximum likelihood Parameters : estimate Std. Error g 10.61863825 NA b 0.09417403 NA Loglikelihood: -123.4709 AIC: 250.9419 BIC: 260.7574 Correlation matrix: [1] NA > cdfcomp(f1, do.points=FALSE) > qqcomp(f1) > > > > # llsurface(plot.min=c(1, 0), plot.max=c(11, 1/2), plot.arg=c("g", "b"), obs=x, distr="MBBEFD", nlevels=25) > # points(f1$estimate["g"], f1$estimate["b"], pch="+", col="red") > # points(8, 1/4, pch="x", col="black") > > > b1 <- bootDR(f1, niter=nboot, silent=TRUE) > plot(b1, enhance=TRUE, trueval=c(8, 1/4)) > > > set.seed(123456) > x <- rMBBEFD(n, 2, 1/4) > > system.time(f1 <- fitDR(x, "MBBEFD")) user system elapsed 0.10 0.00 0.09 > > > b1 <- bootDR(f1, niter=nboot, silent=TRUE) > plot(b1, enhance=TRUE, trueval=c(2, 1/4)) > > > proc.time() user system elapsed 5.07 0.20 5.26