Why does the GLMFIT function not recognize LOGNORMAL as a distribution?

3 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!