if (FALSE) {
par1 <- vec2par(c(.3, 2.15), type="emu")
lmr1 <- lmomemu(par1, nmom=4)
par2.1 <- paremu(lmr1, alsofitT3=FALSE, verbose=TRUE, trackoptim=TRUE)
par2.1$para # correct parameters not found: eta=0.889 mu=3.54
par2.2 <- paremu(lmr1, alsofitT3=TRUE, verbose=TRUE, trackoptim=TRUE)
par2.2$para # correct parameters not found: eta=0.9063 mu=3.607
par2.3 <- paremu(lmr1, alsofitT3T4=TRUE, verbose=TRUE, trackoptim=TRUE)
par2.3$para # correct parameters not found: eta=0.910 mu=3.62
par2.4 <- paremu(lmr1, justfitT3T4=TRUE, verbose=TRUE, trackoptim=TRUE)
par2.4$para # correct parameters not found: eta=0.559 mu=3.69
x <- seq(0,3,by=.01)
plot(x, pdfemu(x, par1), type="l", lwd=6, col=8, ylim=c(0,2))
lines(x, pdfemu(x, par2.1), col=2, lwd=2, lty=2)
lines(x, pdfemu(x, par2.2), col=4)
lines(x, pdfemu(x, par2.3), col=3, lty=3, lwd=2)
lines(x, pdfemu(x, par2.4), col=5, lty=2, lwd=2)
}
Run the code above in your browser using DataLab