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) > > > #oiunif > n <- 1e3 > nboot <- 1000 > nboot <- 10 > x <- roiunif(n, 1/6) > f1 <- fitDR(x, "oiunif", method="mle") Warning message: In fitdist(x, distr = dist, method = method, start = start, lower = 0, : The doiunif function should return a vector of with NaN values when input has inconsistent values and not raise an error > summary(f1) Fitting of the distribution ' oiunif ' by maximum likelihood Parameters : estimate Std. Error p1 0.178 0.0120958 Loglikelihood: -468.3472 AIC: 938.6944 BIC: 943.6022 > summary(fitdist(x, "oiunif", method="mle", start=list(p1=1/2))) #check Fitting of the distribution ' oiunif ' by maximum likelihood Parameters : estimate Std. Error p1 0.1780015 0.01209588 Loglikelihood: -468.3472 AIC: 938.6944 BIC: 943.6022 Warning message: In fitdist(x, "oiunif", method = "mle", start = list(p1 = 1/2)) : The doiunif function should return a vector of with NaN values when input has inconsistent values and not raise an error > > b1 <- bootDR(f1, niter=nboot, silent=FALSE) Warning message: In fitdist(x, distr = dist, method = method, start = start, lower = 0, : The doiunif function should return a vector of with NaN values when input has inconsistent values and not raise an error > summary(b1) Parametric bootstrap medians and 95% percentile CI Median 2.5% 97.5% 0.179000 0.162225 0.200950 > > plot(b1) > abline(v=1/6, col="red") > > hist(b1$estim[,1]) > abline(v=1/6, col="red") > > > f2 <- fitDR(x, "oiunif", method="tlmme") Warning message: In fitdist(x, distr = dist, method = method, start = start, lower = 0, : The doiunif function should return a vector of with NaN values when input has inconsistent values and not raise an error > > > > proc.time() user system elapsed 1.10 0.15 1.25