Constructs an indicator variable for the specified levels.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Function CreateIndicatorVariable ( _
	value As Double, _
	referenceValue As Double _
) As NumericalVariable
C#
public NumericalVariable CreateIndicatorVariable (
	double value,
	double referenceValue
)
C++
public:
NumericalVariable^ CreateIndicatorVariable (
	double value, 
	double referenceValue
)

Parameters

value (System.Double)
The level indicated by the return value.
referenceValue (System.Double)
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.