Stepwise multinomial logistic regression

조회 수: 20 (최근 30일)
Daniel
Daniel 2016년 5월 18일
답변: Thomas Gorman 2017년 3월 21일
Dear all, I want to implement a stepwise multinomial logistic regresssion. I could not find any inbuild function for this procedure in multinomial logistic regressions in particular.
I have run mnrfit over my data (with 3 categories and 44 predictors). I do not know how I can compute a maximum likelihood estimator from the output or something equivalent which I can use for -LL-ratio testing to reduce the number of predictors. I am also not sure what algorithm with respect to reduction and stopping criteria would be the best.
Is there any function that does what I want, if not how can I compute ML for each of my logistic regressions and what comparison criterion (-LL, AIC, BIC) would you recommend in this case, and when should I stop reducing parameters?
Best wishes and many thanks in advance!
Daniel
  댓글 수: 1
Erik
Erik 2016년 7월 26일
Are you still having this question? If not: how did you solve your problem? I partially have the same question: I'm looking for a model to predict a multinomial response based on many possibly features. I want to do feature selection based on stepwise regression. Using
[beta,dev,stats] = mnrfit(...)
you can get the model deviance
dev
which is a function of log likelihood of the model with respect to best achievable log likelihood. Am I correct that deviance is zero if the model fits the data perfectly? See here for more info: link.
To implement your own stepwise regression algorithm could be possible. A function like
stepwiseglm
implements stepwise regression for models very similar to multinomial regression, e.g. binomial regression. For that function deviance is the default parameter on which the decision which model is best is based. AIC, BIC, etc. can be calculated (also manually) and used instead. In the documentation the stepwise regression algorithm is described.

댓글을 달려면 로그인하십시오.

답변 (1개)

Thomas Gorman
Thomas Gorman 2017년 3월 21일
I have the same question. Did you ever find a solution?

카테고리

Help CenterFile Exchange에서 Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by