Description Usage Arguments Details Value Author(s)
A general step-up-down procedure.
1 | SUD(pValues, criticalValues, startIDX_SUD)
|
pValues |
pValues to be used. |
criticalValues |
criticalValues for the step-up-down procedure |
startIDX_SUD |
the index (between 1 and length(pValues)) used for the first comparison of pValues[startIDX_SUD] and criticalValues[startIDX_SUD]. Depending on the result of this comparison the algorithm decides to proceed in step-up or step-down manner. |
Suppose we have n pValues and they are already sorted. The procedure compares pValues[startIDX_SUD] with criticalValues[startIDX_SUD] and then proceeds in step-up or step-down manner, depending on the result of this initial comparision.
If pValues[startIDX_SUD] <= criticalValues[startIDX_SUD], then the procedure rejects the hypotheses associated with pValues[1], ..., pValues[startIDX_SUD] and carries on in a step-down manner from startIDX_SUD to n to reject additional hypotheses.
If pValues[startIDX_SUD] > criticalValues[startIDX_SUD], then the procedure retains hypotheses associated with pValues[startIDX_SUD], ..., pValues[n] and carries on in a step-up manner with pValues[startIDX_SUD - 1], ..., pValues[1].
If startIDX_SUD equals n the algorithm behaves like a step-up procedure.
If startIDX_SUD equals 1 the algorithm behaves like a step-down procedure.
rejected logical vector indicating if hypotheses are rejected or retained.
MuToss-Coding Team
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.