tests/t-benchonestep-replicate-4-closeform.R

require(OneStep)


n <- 1e3

####   G1 <- c("norm", "exp", "lnorm", "invgauss", "pois", "geom") # Distributions for which the explicit MLE is returned ####   


benchonestep.replicate(n, 4, "exp", rate=1)
benchonestep.replicate(n, 4, "exp", rate=1, methods="mle")
  




####   G3 <- c("gamma", "beta", "nbinom") # Distributions with a default MME initial guess estimator ####   

benchonestep.replicate(n, 4, "beta", shape1=1/2, shape2=3/2)
if(FALSE)
  benchonestep.replicate(n, 4, "beta", shape1=1/2, shape2=3/2, ncpus=2)

Try the OneStep package in your browser

Any scripts or data that you put into this service are public.

OneStep documentation built on Oct. 17, 2024, 5:06 p.m.