find sample size to get desired confidence interval length
| Parameters: | proportion : float in (0, 1)
half_length : float in (0, 1)
alpha : float in (0, 1)
method : string in [‘normal’]
|
|---|---|
| Returns: | n : float
|
Notes
this is mainly to store the formula. possible application: number of replications in bootstrap samples