Srangeinv
Definition:
computes the deviate,
, associated with the lower tail probability of the distribution of the Studentized range statistic.
The externally Studentized range,
, for a sample,
is defined as:
/math-ec1f855d5b2eedff545ccb04a0b4cfee.png)
Where
is an independent estimate of the standard error of the
's.
For a Studentized range statistic the probability integral,
, for
degrees of freedom and
groups, can be written as: ![p(q)=C\int_0^\infty x^{\nu -1}e^{-\nu x^2/2}\{\Phi (y)[\Phi (y)-\Phi (y-qx)]^{r-1}dy\}dx p(q)=C\int_0^\infty x^{\nu -1}e^{-\nu x^2/2}\{\Phi (y)[\Phi (y)-\Phi (y-qx)]^{r-1}dy\}dx](/labtalk/ja/images/Srangeinv_(function)/math-616afeb1040486bbd2fe15a3a09635dc.png)
where /math-3b065bf53bc7bdd1f79632c4c7cbf976.png)
For a given probability
, the deviate
is found as the solution to the equation
/math-affc80cd0524ae670fd6a8c05b825031.png)
Parameters:
- p (output, double)
- the probability.
- v (input,double)
- the number of degrees of freedom for the experimental error
.
≥ 1.0 - ir (input, int)
- the number of groups,
./math-3d88ed14b73ec62f8d6f688e8f82a003.png)
- q (output, double)
- the Studentized range statistic,
. /math-80fcccb754a63c68a76d00a4297ec438.png)