IncludeConstantBasis

IncludeConstantBasis

LinearModelFit 和其它拟合函数的一个选项,用于指定当在基函数列表中没有明确给出常数项时,是否包含常数项.

更多信息

  • 当基函数列表中没有指定常数项时,默认设置 IncludeConstantBasis->True 会对模型增加常数基.
  • 线性模型和广义线性模型通常将拟合模型和响应均值模型比较,响应均值模型仅包含一个常量基函数.
  • 设置 IncludeConstantBasis->False 可用于拟合无常量基函数的模型.

范例

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

基本范例  (1)

拟合一个简单的线性回归模型:

用零截距拟合线性模型:

范围  (2)

拟合广义线性模型:

拟合一个模型,线性预测中没有一个常数项:

在有常数项和无常数项下拟合一个对数模型:

概率单位模型:

Wolfram Research (2008),IncludeConstantBasis,Wolfram 语言函数,https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

文本

Wolfram Research (2008),IncludeConstantBasis,Wolfram 语言函数,https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

CMS

Wolfram 语言. 2008. "IncludeConstantBasis." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/IncludeConstantBasis.html.

APA

Wolfram 语言. (2008). IncludeConstantBasis. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/IncludeConstantBasis.html 年

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_includeconstantbasis, organization={Wolfram Research}, title={IncludeConstantBasis}, year={2008}, url={https://reference.wolfram.com/language/ref/IncludeConstantBasis.html}, note=[Accessed: 22-November-2024 ]}