MATLAB multiple linear regression (regress)

MATLAB multiple linear regression (regress)

grammar

b = regress(y,X)
[b,bint] = regress(y,X)
[b,bint,r] = regress(y,X)
[b,bint,r,rint] = regress(y,X)
[b,bint,r,rint,stats] = regress(y,X)
[___] = regress(y,X,alpha)

Explanation

b = regress (y, X) returns a vector b of coefficient estimates for a multiple linear regression of the responses in vector y on the predictors in matrix X. To compute coefficient estimates for a model with a constant term (intercept), include a the matrix of ones in column X.
B = the regression (y, X) returns a coefficient estimate vector b, a multiple linear regression on the predictor matrix X in response vector y. To calculate the model constant term (intercept) the coefficient estimates, include a matrix of X.

[B, Bint] = directories regress (y, X) Also Returns A Matrix Bint of 95% confidence Intervals for The coefficient Estimates.
[B, Bint] = regression (y, X) returns the matrix coefficients estimated 95% confidence interval bint.

[B, Bint, R & lt] = directories regress (y, X) R & lt Also Returns AN Additional Vector of residuals.
[B, Bint, R & lt] = regression (y, X) also returns a residual vector r.

[B, Bint, R & lt, RINT] = directories regress (y, X) Also Returns A Matrix RINT of Intervals that CAN BE Used to Diagnose Outliers.
[B, Bint, R & lt, RINT] = regression (y, X) also returns a spacer matrix can be used for the diagnosis of an abnormal value.

[b, bint, r, rint , stats] = regress (y, X) also returns a vector stats that contains the R2 statistic, the F-statistic and its p-value, and an estimate of the error variance. The matrix X a column of the include ones MUST The Software for statistics to correctly & Compute The Model.
[B, Bint, R & lt, RINT, stats] = regression (y, X) also returns a statistics vector, which contains the R2 statistic, F- statistic its estimated p values and error variance. X must contain a matrix to calculate the correct model statistics software.

[___] = directories regress (y, X-, Alpha) uses A 100 * (. 1-Alpha)% confidence Level to Compute Bint and RINT. The Specify the any of The Output argument Combinations in The Previous syntaxes.
[___] = regression (y, x, alpha) and rint bint calculated using 100 * (1-alpha)% confidence. Any combination specified in the preceding output parameter syntax.

Released two original articles · won praise 1 · views 68

Guess you like

Origin blog.csdn.net/JAT0929/article/details/104348528