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. > if(FALSE) + { + require(fitdistrplus) + + x <- rgamma(1e3, shape=3/2, rate= 1/2) + + initval <- unlist(fitdistrplus:::startargdefault(x, "gamma")) + + fitdistrplus:::fitbench(x, "gamma", "mle") + + fitdistrplus:::fitbench(x, "gamma", "mle", lower=0) + + + # grgam(1:2, x) + # grgamlnl(x[1], shape=1, rate=2) + # grgamlnl(x[1:2], shape=1, rate=2) + + fitdistrplus:::fitbench(x, "gamma", "mle", grad=fitdistrplus:::grlnlgamma) + + fitdistrplus:::fitbench(x, "gamma", "mle", grad=fitdistrplus:::grlnlgamma, lower=0) + + #mledist(x, "gamma", grad=grgam, lower=0, optim.method = "CG") + #mledist(x, "gamma", grad=grgam, lower=0, optim.method = "BFGS") + + } > > proc.time() user system elapsed 0.23 0.03 0.25