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?
specification test for panel dataHello community after regressing my three models (FE,RE,Poold) I know that I have to choose between …
Systematic VariationHow can I test the systematic variation in the Stata? I tried to use F-test to check it.Am I on the …
Error "svy not recognised"I am working with DHS data and I did the following gen weight = v005 / 1000000 clonevar psu_id = v0…
Need help renaming variables in a loopI have a dataset that looks something like this. path_recover_1 path1s_1 path1s_2 path1s_2 path1s…
How does Stata identify and generate a categorical variable from a subgroup of entire observation?Hi all, I have a panel data and this table shows an annual transaction of certain fruits. Now, I try…
Subscribe to:
Post Comments (Atom)
0 Response to Do I need to standardize a mixed data before doing lasso?
Post a Comment