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