x <- seq(0.1, 1, 0.1)
dgen.exp.power(x, 1.5, 0.8, 2)
pgen.exp.power(x, 1.5, 0.8, 2)
qgen.exp.power(0.5, 1.5, 0.8, 2)
rgen.exp.power(10, 1.5, 0.8, 2)
hgen.exp.power(x, 1.5, 0.8, 2)
#Data
x <- waiting
#ML Estimates
params = list(alpha=0.3407, lambda=0.6068, theta=7.6150)
#P–P (probability–probability) plot
pp.plot(x, params = params, pfun = pgen.exp.power, fit.line=TRUE)
#Q-Q (quantile–quantile) plot
qq.plot(x, params = params, qfun = qgen.exp.power, fit.line=TRUE)
# Goodness-of-Fit(GoF) and Model Diagnostics
# Neither plot nor console output; results stored in 'out'
out <- gofic(x, params = params,
dfun = dgen.exp.power, pfun = pgen.exp.power, plot=FALSE)
print.gofic(out)
Run the code above in your browser using DataLab