estimateSampleSize

fun estimateSampleSize(desiredHW: Double): Long

Estimates the number of observations needed in order to obtain a getConfidenceLevel() confidence interval with plus/minus the provided half-width

Return

the estimated sample size

Parameters

desiredHW

the desired half-width, must be greater than zero