OBSOLETE LINEAR REGRESSION PACKAGE SYMBOL

IncludeConstant

As of Version 7.0, has been renamed to IncludeConstantBasis and is part of the built-in Mathematica kernel.


is an option for Regress and DesignMatrix that specifies whether a constant term is automatically included in the model.

DetailsDetails

  • To use , you first need to load the Linear Regression Package using .
  • The default setting IncludeConstant->True adds a constant term to the set of basis functions if a constant is not already included.
  • The setting IncludeConstant->False leaves the set of basis functions unchanged.
  • In the output of DesignMatrix, the constant term is included as the first column.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

Design matrices with and without a constant automatically included:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
New to Mathematica? Find your learning path »
Have a question? Ask support »