LinearRegression`
Regress and DesignedRegress are now available using the built-in function LinearModelFit.
The function DesignMatrix has been added to the built-in Mathematica kernel.
The option BasisNames is now an optional argument to LinearModelFit.
The option IncludeConstant has been renamed to IncludeConstantBasis.
New system functions
LinearModelFit is part of the built-in Mathematica kernel:
![<< LinearRegression`;
Regress[{{1, 2}, {2, 4}, {3, 2}, {4, -1}}, {Sin[x]}, x]](Files/LinearRegression.en/legacy_1.gif)
The result is returned as a FittedModel object, of which properties can be returned:
For a list of available properties, use "Properties":

To get the functional form of the FittedModel object, use Normal:
DesignedRegress has also been superseded by LinearModelFit:
![<< LinearRegression`;
DesignedRegress[{{1, 0}, {1, 1}, {1, 2}}, {1, 2, 4}]](Files/LinearRegression.en/legacy_3.gif)
Calculate the parameter table and property values:
DesignMatrix is part of the built-in Mathematica kernel:
![<< LinearRegression`;
DesignMatrix[{2, 3, 4, 6}, x, x]](Files/LinearRegression.en/legacy_4.gif)
BasisNames is now an optional argument to LinearModelFit:
![<< LinearRegression`;
DesignedRegress[{{1, 1}, {1, 2}, {1, 3}, {1, 4}}, {2, 3, 4, 6},
BasisNames -> {"b1", "b2"}]](Files/LinearRegression.en/legacy_5.gif)
IncludeConstant has been renamed to IncludeConstantBasis:
![<< LinearRegression`;
DesignMatrix[{1, 2, 3, 4}, {x}, x, IncludeConstant -> False]](Files/LinearRegression.en/legacy_6.gif)
Some of the properties previously available to Regress and related functions have been renamed:
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" |