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
Linear probability models with interactions: how can I calculate relative effects / relative risk ratios?Dear Statalisters, I am running Linear Probability Models with interactions and would like to calcu…
Interpreting a positive interaction term where one main effect is positive and one negativeHi, I am trying to interpret an effect from an interaction term. I have the following output: a po…
tab_chi updated on SSC: revisions to tabmThanks to Kit Baum, as ever, the tab_chi package on SSC has been updated. The revisions concern the …
Testing some stuff Code: sysuse nlsw88,clear reg married i.collgrad##c.wage margins collgrad, at(wage== (5 10 15)) po…
Split string variables with numeric valuesHi, I am using Stata 17 and need some help with splitting of string variables. Below is an example …
Subscribe to:
Post Comments (Atom)
0 Response to PPMLHDFE and Lasso
Post a Comment