自己看regress帮助文档。
[b,bint] = regress(y,X) returns a matrix bint of 95% confidence intervals for β.
[b,bint,r] = regress(y,X) returns a vector, r, of residuals.
[b,bint,r,rint] = regress(y,X) returns a matrix rint of intervals that can be used to diagnose outliers. If rint(i,:) does not contain zero, then the ith residual is larger than would be expected, at the 5% significance level. This suggests that the ith observation is an outlier.
[b,bint,r,rint,stats] = regress(y,X) returns a vector stats that contains, in the following order, the R2 statistic, the F statistic and a p value for the full model, and an estimate of the error variance.
[...] = regress(y,X,alpha) uses a 100(1 - alpha)% confidence level to compute bint, and a (100*alpha)% significance level to computerint. For example, alpha = 0.2 gives 80% confidence intervals.来自:求助得到的回答
温馨提示:答案为网友推荐,仅供参考