IMSL C# Numerical Library

CategoricalGenLinModel.SetEffects Method 

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

public virtual void SetEffects(
   int[] indef,
   int[] nvef
);

Parameters

indef
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
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

Exception TypeCondition
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

CategoricalGenLinModel Class | Imsl.Stat Namespace