## Not run:
# # Two examples well inside the domain but known to produce difficulty in
# # the optimization process; pargep() engineered with flexibility to usually
# # hit the proper solutions.
# mygepA <- pargep(vec2lmom(c(1,0.305,0.270), lscale=FALSE))
# mygepB <- pargep(vec2lmom(c(1,0.280,0.320), lscale=FALSE))
# ## End(Not run)
## Not run:
# gep1 <- vec2par(c(2708, 3, 52), type="gep")
# lmr <- lmomgep(gep1); print(lmr$lambdas)
# gep2 <- pargep(lmr); print(lmomgep(gep2)$lambdas)
# # Note that we are close on matching the L-moments but we do
# # not recover the parameters given because to shape parameters.
# gep3 <- pargep(lmr, nk=1, nh=2);
# x <- quagep(nonexceeds(), gep1)
# x <- sort(c(x, quagep(nonexceeds(), gep2)))
# plot(x, pdfgep(x, gep1), type="l", lwd=2)
# lines(x, pdfgep(x, gep2), lwd=3, col=2)
# lines(x, pdfgep(x, gep3), lwd=2, col=3)
# ## End(Not run)
Run the code above in your browser using DataLab