I am doing a projects using glmnet
package and have hard time to interpret the result.
The scenario as follows.
There are 7 variables x1
, ..., x7
.
x3
, ... , x7
are scaled to mean 0 and std 1.
I fit a Lasso regression on x3
, ... , x7
. Lasso selects some variables.
Then I fit a Lasso regression on all variables, i.e., x1
, ..., x7
, Lasso selects intercept only.
I do not know why this happened and how to fix it.