I'm trying to build a model using Logistic Regression, but I'm getting a warning/errors when running this:
mdl = fitglm(X, Y, 'distr', 'binomial', 'link', 'logit')
Here are the errors:
Warning: Iteration limit reached.
In glmfit (line 368)
In GeneralizedLinearModel/fitter (line 920)
In classreg.regr.FitObject/doFit (line 220)
In GeneralizedLinearModel.fit (line 1245)
In fitglm (line 134)
Can someone please explain why I'm getting these errors, and how to fix them. Thank you