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) > > > #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.175 0.01201529 Loglikelihood: -463.7264 AIC: 929.4529 BIC: 934.3606 > 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.1750015 0.01201537 Loglikelihood: -463.7264 AIC: 929.4529 BIC: 934.3606 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.173000 0.153225 0.190000 > > 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.18 0.25 1.42