Dear all,
I am trying to use the command that STATA has for DML (Cross-fit partialing-out lasso linear regression; xporegress) but I have some questions for which I could not find a solution:
1. I know that usually with Lasso methods we have to standardize the variables. I am wondering, is the command doing this automatically ? Moreover, as DML is not about predictions but inference, should the variables of interest also be standardized?
2. About this standardization procedure, I know there is a whole debate about whether categorical variables should be standardized. I have a few as well as controls and I am currently just transforming them to be considered as dummy variables. (i. command). Do you think that's enough ?
3. Lastly, I am also considering applying a log-scale to some of my continuous variables (e.g average income and expenditures). Do you think this is feasible after standardizing the variables?
4. Is there a way to create automatically interactions between variables as controls ?
To put it all in context, I am trying to estimate the effect of two variables (one categorical/dummy and one a continuous one) while taking into account the effect of a bunch of controls.
If you have any ideas about these questions or any general comments, please let me know.
Many thanks in advance.
Related Posts with Double Machine Learning (DML) in STATA (xporegress command)
Is there any case that the coefficient of variable of interest in DiD more significant when adding more variables?Considering a Difference-in-Differences equation with a dummy variable: yi=α+βDi+Xit+εi. While Xit…
Why after exporting a table to the Word document, the headers of the table are dislocated?Hi, I've run the following syntax but as you can see in the attached the headers of the table are di…
Trouble obtaining quarterly values from a date variableI am starting with a date_of_survey variable that is a string formatted as YYYY-MM-DD. I then run th…
Creating new variable from other variablesHello; I am trying to merge some variables to create a new variable. To expand, I am trying to cre…
What is the meaning of this Stata code and how to fix errors?Dear all, I come across a replication do-file of a study and some code in the do-file are beyond my…
Subscribe to:
Post Comments (Atom)
0 Response to Double Machine Learning (DML) in STATA (xporegress command)
Post a Comment