Statistics`LinearRegression`のすべての機能が組込みの Mathematica カーネルで使用できる.
新しいシステム関数
Regressの代りに,組込みの Mathematica カーネルの一部であるLinearModelFitが使われるようになった:
Version 5.2
lm = LinearModelFit[{{1, 2}, {3, 5}, {4, 9}}, {x}, {x}]結果はFittedModelオブジェクトとして返され,そのプロパティを返すことができる:
lm[{"ParameterTable", "RSquared"}]利用できるプロパティのリストを見るためには"Properties"を使う:
Version 5.2
lm["Properties"]FittedModelオブジェクトの関数形式を得るためにはNormalを使う:
Normal[lm]DesignedRegressの代りにもLinearModelFitが使われるようになった:
Version 5.2
lm = LinearModelFit[{{{1, 0}, {1, 1}, {1, 2}}, {1, 2, 4}}]lm[{"ParameterTable", "RSquared"}]DesignMatrixは組込みの Mathematica カーネルの一部である:
Version 5.2
DesignMatrix[{2, 3, 4, 6}, x, x]BasisNamesはLinearModelFitのオプショナルの引数となった:
Version 5.2
LinearModelFit[{{{1, 1}, {1, 2}, {1, 3}, {1, 4}}, {2, 3, 4, 6}}, {"b1", "b2"}]IncludeConstantの名前がIncludeConstantBasisに変更された:
Version 5.2
DesignMatrix[{1, 2, 3, 4}, {x}, x, IncludeConstantBasis -> False]Regressおよび関連関数で以前利用できたプロパティの中には,名前が変更されたものもある:
| Regress | LinearModelFit |
| BestFitParametersDelta | "BetaDifferences" |
| CookD | "CookDistances" |
| CovarianceMatrixDetRatio | "CovarianceRatios" |
| JackknifedVariance | "SingleDeletionVariances" |
| MeanPredictionCITable | "MeanPredictionConfidenceIntervalTable" |
| ParameterCITable | "ParameterConfidenceIntervalTable" |
| PredictedResponseDelta | "FitDifferences" |
| SinglePredictionCITable | "SinglePredictionConfidenceIntervalTable" |
| SummaryReport | {"ParameterTable", "RSquared", "AdjustedRSquared", "EstimatedVariance", "ANOVATable"} |
| VarianceInflation | "VarianceInflationFactors" |