x <- seq(0.1, 2.0, 0.2)
dpois.chen(x, 2.0, 0.5, 0.2)
ppois.chen(x, 2.0, 0.5, 0.2)
qpois.chen(0.5, 2.0, 0.5, 0.2)
rpois.chen(10, 2.0, 0.5, 0.2)
hpois.chen(x, 2.0, 0.5, 0.2)
# Data
x <- fibers63
# ML estimates
params = list(alpha=0.53679, beta=1.00238, lambda=108.22948)
#P–P (probability–probability) plot
pp.plot(x, params = params, pfun = ppois.chen, fit.line=TRUE)
#Q-Q (quantile–quantile) plot
qq.plot(x, params = params, qfun = qpois.chen, fit.line=TRUE)
# Goodness-of-Fit(GoF) and Model Diagnostics
out <- gofic(x, params = params,
dfun = dpois.chen, pfun=ppois.chen, plot=TRUE)
print.gofic(out)
Run the code above in your browser using DataLab