x <- seq(1.0, 5, 0.25)
dhc.gpz(x, 2.0, 0.5, 2.5)
phc.gpz(x, 2.0, 0.5, 2.5)
qhc.gpz(0.5, 2.0, 0.5, 2.5)
rhc.gpz(10, 2.0, 0.5, 2.5)
hhc.gpz(x, 2.0, 0.5, 2.5)
# Data
x <- stress66
# ML estimates
params = list(alpha=1.6660, lambda=0.0328, theta=2.0578)
#P–P (probability–probability) plot
pp.plot(x, params = params, pfun = phc.gpz, fit.line=TRUE)
#Q-Q (quantile–quantile) plot
qq.plot(x, params = params, qfun = qhc.gpz, fit.line=TRUE)
# Goodness-of-Fit(GoF) and Model Diagnostics
out <- gofic(x, params = params, dfun=dhc.gpz, pfun=phc.gpz, plot=TRUE)
print.gofic(out)
Run the code above in your browser using DataLab