Model Term.Interaction Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Interaction(ModelTerm[]) | Creates an interaction between multiple terms. |
Interaction( | Creates an interaction between two terms. |
Interaction(ModelTerm[])
Creates an interaction between multiple terms.
public static ModelTerm Interaction(
params ModelTerm[] terms
)
Parameters
- terms ModelTerm[]
- A param array of terms.
Return Value
ModelTermA model term that represents the interaction.
Remarks
The type of model term that is returned depends on the number of terms in the actual interaction. Constant terms are never included in the interaction. If the same categorical term occurs multiple times, it is only included once in the interaction.
Interaction(ModelTerm, ModelTerm)
Creates an interaction between two terms.
public static ModelTerm Interaction(
ModelTerm left,
ModelTerm right
)
Parameters
Return Value
ModelTermA model term that represents the interaction between left and right.
Remarks
The type of model term that is returned depends on the number of terms in the actual interaction. Constant terms are never included in the interaction. If the same categorical term occurs multiple times, it is only included once in the interaction.