WOLFRAM

IncludeConstantBasis
IncludeConstantBasis

is an option for LinearModelFit and other fitting functions that specifies whether a constant term should be included if not explicitly given in the list of basis functions.

Details

  • 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.
  • Setting IncludeConstantBasis->False can be used to fit models without a constant basis function.

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

Fit a simple linear regression model:

Out[2]=2

Fit the linear model with intercept zero:

Out[3]=3

Scope  (2)Survey of the scope of standard use cases

Fit a generalized linear model:

Out[2]=2

Fit the model without a constant term in the linear predictor:

Out[3]=3

Fit logit models with and without a constant term:

Out[1]=1
Out[2]=2

Probit models:

Out[3]=3
Out[4]=4
Wolfram Research (2008), IncludeConstantBasis, Wolfram Language function, https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.
Wolfram Research (2008), IncludeConstantBasis, Wolfram Language function, https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

Text

Wolfram Research (2008), IncludeConstantBasis, Wolfram Language function, https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

Wolfram Research (2008), IncludeConstantBasis, Wolfram Language function, https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

CMS

Wolfram Language. 2008. "IncludeConstantBasis." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

Wolfram Language. 2008. "IncludeConstantBasis." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

APA

Wolfram Language. (2008). IncludeConstantBasis. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IncludeConstantBasis.html

Wolfram Language. (2008). IncludeConstantBasis. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IncludeConstantBasis.html

BibTeX

@misc{reference.wolfram_2025_includeconstantbasis, author="Wolfram Research", title="{IncludeConstantBasis}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/IncludeConstantBasis.html}", note=[Accessed: 28-April-2025 ]}

@misc{reference.wolfram_2025_includeconstantbasis, author="Wolfram Research", title="{IncludeConstantBasis}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/IncludeConstantBasis.html}", note=[Accessed: 28-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_includeconstantbasis, organization={Wolfram Research}, title={IncludeConstantBasis}, year={2008}, url={https://reference.wolfram.com/language/ref/IncludeConstantBasis.html}, note=[Accessed: 28-April-2025 ]}

@online{reference.wolfram_2025_includeconstantbasis, organization={Wolfram Research}, title={IncludeConstantBasis}, year={2008}, url={https://reference.wolfram.com/language/ref/IncludeConstantBasis.html}, note=[Accessed: 28-April-2025 ]}