Uses nortest::lillie.test when available; otherwise falls back to a plain KS test with estimated parameters (p-value approximate).
Uses nortest::lillie.test when available; otherwise falls back to a plain KS test with estimated parameters (p-value approximate).