I am running a Logit-LASSO model predicting binary outcome. In R (glmnet) I am getting only 1's prediction (over the testing sample). When doing the same in Stata (lassopack) predictions vary so much that I get 1's but also 0's (as real data represents).
Note that predictions are continuos (as the outcome is treated as a probability, even though it is a binary variable). Afterwards I convert the predicted outcome into 0's and 1's. In the second figure, all probabilities are >0.5, therefore R only predicts 1's.
Are those discrepancies usual in your experience? How can I standardise the process so I can compare predictions of Stata/R?
Thank you.