Constructs an indicator variable for the specified levels.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function CreateIndicatorVariable ( _ level As Object, _ referenceLevel As Object _ ) As NumericalVariable |
| C# |
|---|
public NumericalVariable CreateIndicatorVariable ( Object level, Object referenceLevel ) |
| C++ |
|---|
public: NumericalVariable^ CreateIndicatorVariable ( Object^ level, Object^ referenceLevel ) |
Parameters
- level (System.Object)
- The level indicated by the return value.
- referenceLevel (System.Object)
- The level indicated by a value of -1.
Return Value
A NumericalVariable with the value one for observations equal to level, minus one for observations equal to referenceLevel, and zero everywhere else.
Remarks
Typically, an indictor variable is created for each level except one.
One common representation is to assign a value of -1 to this missing level.
The referenceLevel parameter specifies this level.