Calculate confidence bands for ecdfs using the Dvoretzky-Kiefer-Wolfowitz inequality.
calc_dkw(dat, column = "age", alpha = 0.05)data.frame
which column to use
Desired alpha level
data.frame with ecdf and confidence bands
Dvoretzky, A., Kiefer, J., Wolfowitz, J., 1956. Asymptotic Minimax Character of the Sample Distribution Function and of the Classical Multinomial Estimator. Ann. Math. Stat. 27, 642-669. doi:10.1214/aoms/1177728174