sample_size Function

public pure function sample_size(dist, var, delta, bet, alpha) result(rst)

Estimates the sample size required to achieve an experiment with the desired power and significance levels to ascertain the desired difference in parameter.

See Also

Arguments

Type IntentOptional Attributes Name
class(distribution), intent(in) :: dist

The distribution to utilize as a measure.

real(kind=real64), intent(in) :: var

An estimate of the population variance.

real(kind=real64), intent(in) :: delta

The parameter difference that is desired.

real(kind=real64), intent(in), optional :: bet

The desired power level. The default for this value is 0.2, for a power of 80%.

real(kind=real64), intent(in), optional :: alpha

The desired significance level. The default for this value is 0.05 for a confidence level of 95%.

Return Value real(kind=real64)

The minimum sample size requried to achieve the desired experimental outcome.


Contents