Skip to content

vlt.stats.cdfTukey

 vlt.stats.cdfTukey Cumulative distribution function (cdf) of the Studentized range (q)

    p = vlt.stats.cdfTukey(q, k, v)

    Calculates the cumulative probability (p) for the Studentized range
    statistic (q), given 'k' groups and 'v' degrees of freedom.

    This function uses a standard numerical integration approach based on
    the normal distribution's CDF, which is a common and robust method for
    approximating the Studentized range CDF. It also includes a direct
    calculation using the t-distribution CDF for the special case k=2.

    **********************************************************************
    *** PACKAGE NOTE & CITATION                                        ***
    **********************************************************************
    This function was originally based on 'cdfTukey.m' from the MATLAB
    File Exchange (FEX ID: 37450) by L. C. V. Malacarne, which was a
    translation of the AS 190 algorithm. The original implementation was
    found to contain bugs that produced incorrect probabilities.

    This version has been re-written to use a more standard and reliable
    numerical integration method for k>2 and the exact t-distribution
    relationship for k=2.

    See also: normcdf, integral, tcdf, vlt.stats.power.calculateTukeyPairwisePower
  --- Input Parsing ---