FUNCTION REFERENCE
regress
Multiple linear regression by column-pivoted QR.
Multiple linear regression by column-pivoted QR.
Syntax
[b,bint,r,rint,stats] = regress(y,X,alpha)X has one row per response; add a column of ones for an intercept. Alpha defaults to 0.05. Rows with NaN in X or y are excluded and restored as NaN in residual outputs. Dependent columns have zero coefficients and produce a warning. bint contains coefficient intervals; rint contains intervals for detecting residual outliers using the deleted residual variance. stats is [R2 F p errvar], calculated assuming X contains a constant column.
Example
b = regress([1;3;5;7],[1 0;1 1;1 2;1 3]); % [1;2]Differences from MATLAB: Real finite or NaN two-dimensional numeric data; single and integer inputs convert to double. Warning wording is specific to MatRust. No model objects.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.