Multivariate logistic Regression with binary predictors
조회 수: 15 (최근 30일)
이전 댓글 표시
I have a dataset of 10 independent variables describing whether a symptom of a disease is present or not and then the binary dependent variable of whether the specific disease is present or not. There are approximately 1000 samples, however some of them are missing values for some of the independent variables.
Is it possible to perform multivariate logistic regression with this dataset to predict disease presence or absence? If so, how would I go about doing that in MATLAB?
Thanks in advance!
댓글 수: 0
답변 (2개)
Shashank Gupta
2019년 12월 11일
Hi,
In my opinion you can apply multivariant logistic regression, but you need to take care of the blank or missing values in between, In order to train the model, either you can ignore that particular sample if it has missing value or you can ignore the specific dimension. Also, If you have any prior knowledge of what could be the missing value, you can fill up the data by interpolating it,
There is function “mnrfit”, it’s a multinomial logistic regression function, May be this function can give you a head start where to look for.
I hope it helps.
댓글 수: 0
Mateus Bringel Oliveira Duarte
2020년 11월 18일
Hi,
In General Matlab has some difficult to handle with some typical problems in medical research.
Logistic regression is considered a geneleralized linear model, so you can try the function fitglm (https://www.mathworks.com/help/stats/fitglm.html). Note that to extract the OR you can Exponentiate the Variables Estimates ,EXP("x"), It's is crucial you also report the Confidence intervals, and P-value.
Best,
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Regression에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!