Initializes an index vector to contain the column numbers in x associated with each effect.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public virtual void SetEffects(
	int[] indef,
	int[] nvef
)
Visual Basic (Declaration)
Public Overridable Sub SetEffects ( _
	indef As Integer(), _
	nvef As Integer() _
)
Visual C++
public:
virtual void SetEffects(
	array<int>^ indef, 
	array<int>^ nvef
)

Parameters

indef
Type: array< System..::.Int32 >[]()[]
An int vector of length \sum_{k=0}^{\mbox{nef}-1}
            \mbox{nvef[k]} where nef is the number of effects in the model.
nvef
Type: array< System..::.Int32 >[]()[]
An int vector of length nef where nef is the number of effects in the model.

Remarks

indef contains the column numbers in x that are associated with each effect. Member function SetEffects(int [], nvef []) sets the number of variables associated with each effect in the model. The first nvef[0] elements of indef give the column numbers of the variables in the first effect. The next nvef[0] elements give the column numbers of the variables in the second effect, etc. By default this vector is not referenced.

nvef contains the number of variables associated with each effect in the model. By default this vector is not referenced.

Exceptions

ExceptionCondition
System..::.ArgumentException is thrown when an element of indef is less than 0 or greater than or equal to the number of columns of x or if an element of nvef is less than or equal to 0

See Also