Class FactorCrossing
java.lang.Object
smile.data.formula.FactorCrossing
- All Implemented Interfaces:
Serializable, Term
Factor crossing. The crossing of a*b interpreted as a+b+a:b.
The ^ operator indicates crossing to the specified degree.
For example (a+b+c)^2 is identical to (a+b+c)*(a+b+c) which
in turn expands to a formula containing the main effects
for a, b and c together with their second-order interactions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFactorCrossing(int order, String... factors) Constructor.FactorCrossing(String... factors) Constructor. -
Method Summary
-
Constructor Details
-
FactorCrossing
Constructor.- Parameters:
factors- the factors to be crossed.
-
FactorCrossing
Constructor.- Parameters:
order- the order of interactions.factors- the factors to be crossed.
-
-
Method Details
-
toString
-
variables
-
expand
-
bind
-