|
Main /
MultipleLinearRegressionInMatlabSince regress(y,X) is only available within stats-toolbox this info from "Matlab help" could be useful: The MATLAB backslash (mldivide) operator, which regress calls, obtains the same result as regress(y,X): betahat = X\y The advantage of working with regress is that it allows for additional inputs and outputs relevant to statistical analysis of the regression. For example: alpha = 0.05; [betahat,Ibeta,res,Ires,stats] = regress(y,X1,alpha); |