using lassoglm for logistic regression
조회 수: 2 (최근 30일)
이전 댓글 표시
I have 3 predictors that are numerical and 2 predictors that are categorical. The expected classes are simply yes or no, so I reckon glmfit will be a good function to use. Upon using glmfit, a warning message appeared:
Warning: X is ill conditioned, or the model is overparametrised, and some coefficients are not identifiable. You should use caution in making predictions.
This suggests that MAYBE some of the predictors might be correlated.
I am now trying to use glmfit with regularisation (lassoglm) and I want to ask the following:
- I am given 100 lambdas. I understand these are geometric sequence of lambdas. (but of what values? and how do i choose which lambda?)
- How do I know which predictors are correlated and must be ignored?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!