Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

IncludeConstantBasis

IncludeConstantBasis
is an option for LinearModelFit and other fitting functions which specifies whether a constant term should be included if not explicitly given in the list of basis functions.
  • The default setting IncludeConstantBasis->True adds a constant basis to the model if one is not specified in the list of basis functions.
  • Linear and generalized linear models typically compare the fitted model to the mean response model which contains only a constant basis function.
Fit a simple linear regression model:
Fit the linear model with intercept zero:
Fit a simple linear regression model:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Fit the linear model with intercept zero:
In[3]:=
Click for copyable input
Out[3]=
Fit a generalized linear model:
Fit the model without a constant term in the linear predictor:
Fit logit models with and without a constant term:
Probit models:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team