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
Simulating different scenarios in a FE panel model with lagged explanatory variableHello! I have a rather general question about my statistical approach - if helpful, I can also post …
Quick syntax question: foreach var of varlist min to maxDear all, I have a quick question about the Stata syntax. I want to refer to a list of variables th…
Panel data which is non-missing for some variables and missing on Saturdays/Sundays/holidays for other variablesGood day, I have a general question regarding best practices for panel data which is non-missing fo…
PSMATCH2 Mahalanobian matchingHi everyone, I am trying to use the nearest neighbour matching using the Mahalanobian matching. I h…
JACCARD similarity measureHi I am working on similarity measure on the different assets classification. I have close to 12 ass…
Subscribe to:
Post Comments (Atom)
0 Response to PPMLHDFE and Lasso
Post a Comment