필터 지우기
필터 지우기

Logistic Regression using dummy variables

조회 수: 5 (최근 30일)
Madhuresh
Madhuresh 2014년 3월 7일
I have a model where categorical (mutually exclusive) variables predict bankruptcy. Chi-square is significant. How can I code a logistic regression model in MATLAB that proves that some of these variables explain the bankruptcies better.
There are 4 variables: which implies 3 dummy variables.
X = [ 0 0 0
0 1 0
0 0 0
0 0 1
0 0 1
1 0 0
1 0 0 ......... ]
Y = [1 0 0 1 1 0 0 .....]; % 1 means bankruptcy
I think I should use glmfit (from http://matlabdatamining.blogspot.com/2009/03/logistic-regression.html) but I wasn't sure if using dummy indicators would require any additional interpretation/inputs. I use R2013a version and I have Statistics and Optimization Toolbox.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by