Robust linear regression via iteratively-reweighted least squares ([b, stats] = robustfit(X, y)). More...
#include <regress.hpp>
Public Attributes | |
| Value | b |
| Robust regression coefficient vector. | |
| Value | s |
| Robust scale estimate. | |
Robust linear regression via iteratively-reweighted least squares ([b, stats] = robustfit(X, y)).
Fits y = X · b + ε while downweighting outliers. Algorithm (matches MATLAB's statrobustfit.m):
The intercept column is prepended by the robustfit builtin (const='on' default). KNOWN GAP: the full stats output struct (degrees of freedom, p-values, etc.) is reduced to scalar s.
| X | Design matrix (n × p). |
| y | Response (n × 1). |
| weight | Weight function (Bisquare default; full MATLAB set: Andrews/Bisquare/Cauchy/Fair/Huber/Logistic/Ols/ |
Result of robust regression ([b, stats] = robustfit(X, y)).
Definition at line 185 of file regress.hpp.
| Value nk::stats::RobustfitResult::b |
Robust regression coefficient vector.
Definition at line 186 of file regress.hpp.
| Value nk::stats::RobustfitResult::s |
Robust scale estimate.
Definition at line 187 of file regress.hpp.