MATLAB: Why I can’t run LinearModel.fit on the Matlab R2011b

linearmodel.fit

I read the example of time series regression on http://www.mathworks.se/help/econ/examples/time-series-regression-i-linear-models.html . But I couldn't run LinearModel.fit on my matlab. I searched it in computer, and I didn't find it. It seems that this m-file should be included in the matlab, but what is the problem?

Best Answer

LinearModel.fit was introduced in R2012a of Statistics Toolbox.
Alan Weiss
MATLAB mathematical toolbox documentation