OBSOLETE LINEAR REGRESSION 程序包 符号

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.

更多信息更多信息

  • 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.

范例范例打开所有单元关闭所有单元

基本范例 (1)基本范例 (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 »