estimateSampleSize

fun estimateSampleSize(desiredHW: Double, stdDev: Double, level: Double = 0.95): Long

Estimate the sample size based on a normal approximation

Return

the estimated sample size

Parameters

desiredHW

the desired half-width (must be bigger than 0)

stdDev

the standard deviation (must be bigger than or equal to 0)

level

the confidence level (must be between 0 and 1)