Learn R Programming

mutoss (version 0.1-3)

SUD: A general step-up-down procedure.

Description

A general step-up-down procedure.

Usage

SUD(pValues, criticalValues, startIDX_SUD)

Arguments

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.

Value

  • rejected logical vector indicating if hypotheses are rejected or retained.

Details

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="" hypotheses="" associated="" with="" pvalues[1],="" ...,="" pvalues[startidx_sud]="" and="" carries="" on="" in="" a="" step-down="" manner="" from="" startidx_sud="" to="" n="" reject="" additional="" hypotheses.<="" p="">

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.