if (FALSE) {
para <- list(para=c(0, 0.4332, -0.7029), type="pdq4")
X <- seq(-4, +4, by=(4 - -4) / 1000)
plot( X, pdfpdq4(X, para), type="l", col=grey(0.8), lwd=4, ylim=c(0, 0.5))
lines(X, dnorm( X, sd=1), lty=2)
legend("topleft", c("Standard normal distribution",
"PDQ4 distribution with same L-moments as the standard normal"),
lwd=c(1, 4), lty=c(2, 1), col=c(1, grey(0.8)), cex=0.8)
mtext("Mimic Hosking (2007, fig. 3 [left])")
check.pdf(pdfpdq4, para, hfactor=0.3) }
if (FALSE) {
para <- list(para=c(100, 43.32, -0.7029), type="pdq4")
minX <- quapdq4(0.0001, para)
maxX <- quapdq4(0.9999, para)
X <- seq(minX, maxX, by=(maxX - minX) / 1000)
plot( X, pdfpdq4(X, para), type="l", col=grey(0.8), lwd=4)
check.pdf(pdfpdq4, para, hfactor=0.3) }
Run the code above in your browser using DataLab