tests/t-benchonestep-4-closeform.R

require(OneStep)
require(actuar)

n <- 1e3

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

x <- rexp(n)
benchonestep(x, "exp", c("mme", "mle")) 
benchonestep(x, "exp", c("mm", "one")) 


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

x <- rbeta(n, 3, 2)
benchonestep(x, "beta", c("mme", "mle")) 
benchonestep(x, "beta", c("mle", "one")) 

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.