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!
Related Posts with Do I need to standardize a mixed data before doing lasso?
Create Barplot also showing CI-IntervalsHi, I want to create a barplot as I have found it in an article by Almond and Edlund (2008). It show…
FE estimationHey everyone... I'm trying to make some estimations with panel data... Command xtpcse is the same as…
Multivariate adjustment linear mixed models for studies with repeated measurementsHi, I have a panel data of 30 subjects with 15 longitudinal observations each. These subjects were …
How can these two datasets reshape between each other?Hi, I have two datasets linked below. Can anyone help me to reshape them between each other using S…
Ommited Industry Diversification - Fixed Effects ModelDear all, according to Allayannis and Weston (2001) I am trying to do a fixed effects regression wi…
Subscribe to:
Post Comments (Atom)
0 Response to Do I need to standardize a mixed data before doing lasso?
Post a Comment