using lassoglm for logistic regression

조회 수: 2 (최근 30일)
cgo
cgo 2020년 3월 25일
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:
  1. I am given 100 lambdas. I understand these are geometric sequence of lambdas. (but of what values? and how do i choose which lambda?)
  2. How do I know which predictors are correlated and must be ignored?

답변 (0개)

카테고리

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