Hi all,
I'm looking to do some gravity modelling with a large number of rhs variables and interactions. Looking at the variety of model selection commands available in Stata, there are a number of variable selection commands, such as GSREG which can be used with commands like glm to run a ppml gravity model. Ideally however I'd like to use the latest Stata command for gravity, PPMLHDFE (given the computational efficiency of how it handles the fixed effects), with Stata 16's new lasso commands for causal inference. Is there any way these two commands can be combined?
One idea I tried was using the HDFE subcommand to demean the trade flows variable by the fixed effect dimensions, after which I planned to just use the new lasso for inference commands (using the poisson option) on the newly demeaned variable. However, I found the problem that the trade flow variable now includes negative values (by construction of the demeaning) and so couldn't run a ppml regression on it. Are there additional commands that I need to use on the variable before I'd be able to run a poisson regression on them?
If this isn't viable, is there an alternative approach?
Thank you in advance,
Elliot
Related Posts with PPMLHDFE and Lasso
Saving & using multiple scalars to generate new variablesHi all, I am trying to create a new indicator variable based on whether an individual is in the top…
Ttest between pop mean and sample meanHi, For a balance table, I am working on, I have generated the sample means and proportion of my d…
Generating a row total sum for each time a strpos from the list is foundHi, I am currently working with ICD10 codes and getting stuck on a question I feel like probably has…
combining retrospective and prospective informationHello all, I have a question please on how to combine retrospective and prospective information usi…
How to let Stata know that one variable contains a panel of countries and the other variable contains just one country?Hi all, I have a panel data set in long-form, where the dependent variable (Y) contains data of 10 …
Subscribe to:
Post Comments (Atom)
0 Response to PPMLHDFE and Lasso
Post a Comment