R Under development (unstable) (2024-10-16 r87241 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(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.12 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.22 0.03 0.25 > > 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.11 0.00 0.11 > > > b1 <- bootDR(f1, niter=nboot, silent=TRUE) > plot(b1, enhance=TRUE, trueval=c(2, 1/4)) > > > proc.time() user system elapsed 5.06 0.31 5.36