FUNCTION REFERENCE
GeneralizedLinearModel
Generalized linear regression model returned by fitglm.
Generalized linear regression model returned by fitglm.
Syntax
mdl = fitglm(X, y, 'Distribution', dist)Holds fitted coefficients, deviance, dispersion, R-squared, residuals, fitted values, formula, log-likelihood and information criteria for normal, binomial and Poisson families. Call predict(mdl, Xnew) to evaluate predictions.
Example
mdl = fitglm([1; 2; 3; 4], [2; 4; 6; 8]); class(mdl) % 'GeneralizedLinearModel'Differences from MATLAB: Uses IRLS with canonical and common link functions; custom link functions and offset vectors are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.