glmfit
Perform generalized linear model fitting.
This function fits a generalized linear model (GLM) to the given data using the specified link function and distribution of the response variable. The model is fitted using Iteratively Reweighted Least Squares (IRLS).
b = glmfit (X, y, distribution, Name,
Value)
specifies additional options using Name-Value
pair
arguments.
Name | Value | |
---|---|---|
"link" | A character vector specifying a lin function. |
The function returns b, the estimated coefficients of the GLM, including the intercept term as the first element of b.
Currently, the function supports only the ’poisson’ distribution and ’log’ link function. Further expansion is required to support additional distributions and link functions.
Source Code: glmfit