x <- seq(0.1, 2.0, 0.1)
dlogis.exp.power(x, 1.5, 1.5, 0.1)
plogis.exp.power(x, 1.5, 1.5, 0.1)
qlogis.exp.power(0.5, 1.5, 1.5, 0.1)
rlogis.exp.power(10, 2.0, 5.0, 0.1)
hlogis.exp.power(x, 1.5, 1.5, 0.1)
# Data
x <- stress
# ML estimates
params = list(alpha=1.8940, beta=1.2276, lambda=0.1650)
#P–P (probability–probability) plot
pp.plot(x, params = params, pfun = plogis.exp.power, fit.line=TRUE)
#Q-Q (quantile–quantile) plot
qq.plot(x, params = params, qfun = qlogis.exp.power, fit.line=TRUE)
# Goodness-of-Fit(GoF) and Model Diagnostics
out <- gofic(x, params = params,
dfun = dlogis.exp.power, pfun=plogis.exp.power, plot=FALSE)
print.gofic(out)
Run the code above in your browser using DataLab