logistic regression
7 views (last 30 days)
Show older comments
I am trying to use logistic regression, but when i execute the following line of code
betaHatNorm=mnrfit(data,class);
my betaHatNorm contains mostly Nan, any resaon it might do so? it also throws a warning regarding matrix
Warning: Matrix is singular to working precision.
0 Comments
Accepted Answer
Peter Perkins
on 11 Jun 2012
What most people mean by "logistic tregression" is a binomial response: number of "successes" vs. number of "failures". Unless you specifically need to fit a model for a multinomial response (more than just two response categories), I'd suggest you use glmfit.
2 Comments
Peter Perkins
on 13 Jun 2012
"Unless you specifically need to fit a model for a multinomial response ..." mnrfit is both more and less general than glmfit, but it is simpler to use glmfit for (binomial) logistic regression.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!