MATLAB: What was the regression function “predict” in older versions of Matlab

linear regressionMATLABmultipple linear regressionpredict response of linear regression model

Hello,
I'm trying to run a simple multiple linear regression example, i.e., this example: http://www.mathworks.com/help/stats/linear-regression-model-workflow.html#btc93m9
However my Matlab version is R2011b and does not include functions "predict" and "fitlm" that are used in the above example. Can someone please advise what equivalent functions I can use? Thank you.

Best Answer

I would search through the relevant R2011b Parametric Regression Analysis documentation for routines that discuss the sort of linear regression you want to do. Everything you likely need to do a linear regression or multiple linear regression seems to be there (consider using the regress or mvregress functions), but you will likely have to code your own version of predict, using the code in the regress documentation.
Related Question