MATLAB: Does the GLMFIT function not recognize LOGNORMAL as a distribution

distributionglmfitinvalidislognormalnameStatistics and Machine Learning Toolbox

When I use the Lognormal distribution with the GLMFIT function, I receive the following error message:
%
%
Error using ==> glmfit
Distribution name is invalid.
However, in the documentation, it states that Lognormal is one of the available distributions that can be used with the GLMFIT function. This function returns the same error message in R13sp1, R14 and R14sp1, when passing Lognormal as a distribution.

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This is incorrectly documented in the description of the GLMFIT function. The GLMFIT function does not support the Lognormal distribution.
As a workaround, you can supply the log of the response vector as an input to GLMFIT and choose the Normal distribution.