線形および一般化された線形モデルフィット関数のオプションで,既知であると考えられるモデル成分を指定する.
LinearOffsetFunction
線形および一般化された線形モデルフィット関数のオプションで,既知であると考えられるモデル成分を指定する.
詳細
- LinearOffsetFunctionは,LinearModelFit,GeneralizedLinearModelFit,LogitModelFit,ProbitModelFitのオプションである.
- LinearOffsetFunction->func はフィットされるモデルが func[x1,x2,…]+β0+β1 f1+β2 f2+⋯という形式の線形予測器を持つように指定する.
- LinearOffsetFunctionは各データ点の線形予測器の既知のモデル成分を定義する.
例題
すべて開く すべて閉じる例 (1)
data = {{0, 1}, {1, 1.5}, {3, 2}, {5, 4}};LinearModelFit[data, x, x]//Normalデータを既知のExp[x]項を持つ線形モデルにフィットする:
LinearModelFit[data, x, x, LinearOffsetFunction -> (Exp[#]&)]//Normalスコープ (3)
data = {{0, 1}, {1, 1.5}, {3, 2}, {5, 4}};GeneralizedLinearModelFit[data, x, x, ExponentialFamily -> "Gamma"]//Normal線形予測器の中で既知のSqrt[x]項があるモデルにフィットする:
GeneralizedLinearModelFit[data, x, x, ExponentialFamily -> "Gamma", LinearOffsetFunction -> (Sqrt[#]&)]//NormalGeneralizedLinearModelFit[data, x, x, ExponentialFamily -> "Gamma", IncludeConstantBasis -> False, LinearOffsetFunction -> (2&)]//NormalLogitModelFit[{.1, .3, .5, .6, .8}, x, x, LinearOffsetFunction -> (Sin[#]&)]//NormalProbitModelFit[{.1, .3, .5, .6, .8}, x, x, LinearOffsetFunction -> (Sin[#]&)]//NormalGeneralizedLinearModelFit[{{4.3, 2, 1.2}, {3.8, 3.3, .6}, {4.5, 3, .7}, {3, 4.2, .5}, {2, 2.1, 1.4}}, {x, y}, {x, y}, ExponentialFamily -> "InverseGaussian", LinearOffsetFunction -> (#1 #2&)]//NormalGeneralizedLinearModelFit[{{4.3, 2, 1.2}, {3.8, 3.3, .6}, {4.5, 3, .7}, {3, 4.2, .5}, {2, 2.1, 1.4}}, {x, y, x y}, {x, y}, ExponentialFamily -> "InverseGaussian"]//Normal関連するガイド
-
▪
- 統計モデル解析
テキスト
Wolfram Research (2008), LinearOffsetFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/LinearOffsetFunction.html.
CMS
Wolfram Language. 2008. "LinearOffsetFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LinearOffsetFunction.html.
APA
Wolfram Language. (2008). LinearOffsetFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LinearOffsetFunction.html
BibTeX
@misc{reference.wolfram_2026_linearoffsetfunction, author="Wolfram Research", title="{LinearOffsetFunction}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/LinearOffsetFunction.html}", note=[Accessed: 02-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_linearoffsetfunction, organization={Wolfram Research}, title={LinearOffsetFunction}, year={2008}, url={https://reference.wolfram.com/language/ref/LinearOffsetFunction.html}, note=[Accessed: 02-November-2026]}