x <- seq(0.1, 10, 0.2)
dhc.gen.exp(x, 2.0, 0.5, 0.1)
phc.gen.exp(x, 2.0, 0.5, 0.1)
qhc.gen.exp(0.5, 2.0, 0.5, 0.1)
rhc.gen.exp(10, 2.0, 0.5, 0.1)
hhc.gen.exp(x, 2.0, 0.5, 0.1)
# Data
x <- conductors
# ML estimates
params = list(alpha=6.6141, lambda=0.9352, theta=0.0103)
#P–P (probability–probability) plot
pp.plot(x, params = params, pfun = phc.gen.exp, fit.line=TRUE)
#Q-Q (quantile–quantile) plot
qq.plot(x, params = params, qfun = qhc.gen.exp, fit.line=TRUE)
# Goodness-of-Fit(GoF) and Model Diagnostics
res <- gofic(x, params = params,
dfun = dhc.gen.exp, pfun=phc.gen.exp, plot=FALSE)
print.gofic(res)
Run the code above in your browser using DataLab