SAS Code for Customized Flagging Rule

Specify your flagging rule here with SAS code.

You must define a variable named "_qFlag_" and set it to -1, 0, or 1 to indicate Absent, Marginal, and Present, respectively.
Leave this field empty if you want to use default flagging rules. The default rules are based on AQC and AGL Agilent Data Processing Explanation and Recommendations and are defined as follows:

Channel

Rule

Single

if ControlType ne 0 then _qFlag_ = -1;

else if (gProcessedSignal < AddErrorEstimateGreen*2) then _qFlag_ = -1;

else if (gIsSaturated | gIsFeatNonUnifOL) then _qFlag_ = 0;

else _qFlag_ = 1;

Dual

if ControlType ne 0 then _qFlag_ = -1;

else if (gProcessedSignal < AddErrorEstimateGreen*2) | (rProcessedSignal < AddErrorEstimateRed*2) then _qFlag_ = -1;

else if (gIsSaturated | rIsSaturated | gIsFeatNonUnifOL | rIsFeatNonUnifOL) then _qFlag_ = 0;

else _qFlag_ = 1;

To Specify SAS Code for a Customized Flagging Rule:

8 Type the code directly into the text field.