# NOT RUN {
# Logistic Distribution
# Find standardized cumulants
stcum <- calc_theory(Dist = "Logistic", params = c(0, 1))
# Find constants without the sixth cumulant correction
# (invalid power method pdf)
con1 <- find_constants(method = "Polynomial", skews = stcum[3],
skurts = stcum[4], fifths = stcum[5],
sixths = stcum[6])
# Plot invalid power method pdf with theoretical pdf overlayed
plot_pdf_theory(c = con1$constants, method = "Polynomial",
title = "Invalid Logistic PDF", overlay = TRUE,
Dist = "Logistic", params = c(0, 1))
# Find constants with the sixth cumulant correction
# (valid power method pdf)
con2 <- find_constants(method = "Polynomial", skews = stcum[3],
skurts = stcum[4], fifths = stcum[5],
sixths = stcum[6], Six = seq(1.5, 2, 0.05))
# Plot valid power method pdf with theoretical pdf overlayed
plot_pdf_theory(c = con2$constants, method = "Polynomial",
title = "Valid Logistic PDF", overlay = TRUE,
Dist = "Logistic", params = c(0, 1))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab