Hello people,

I have a great data of mixed variables: binary variables, quantitative variables and categorical variables, multiple level variables (e.g: how important is your family?: 1: very important, 2: important, 3; not important)
I would like to use lasso to choose the suitable variables for regression. I was advised to standardize all the variables before doing that. However, I am still wondering how should I standardize binary variables or multiple level variables? Is it possible?
Besides, I only know the command: egen float (newvar) = std(var), mean(0) std(1) , to standardize one variable. How could I do this to a large number of variables on STATA?
Could you please kindly suggest me some more options?

Thank you very much!