Hi all,
I'm using a gravity model to predict migration through PPML. The dependent variable is Migration in stocks (EMI). On the RHS, I have a number of variables (below I'm just showing the most relevant ones for this question): country Fixed Effects (DUM_COUNTRY*) and the Migration Rate (MR). The Migration Rate is the variable that is causing trouble. This is defined as: log(1+(EMI_lag/(EMI-EMI_lag))). The important thing to notice here is that EMI also appears on the RHS of the equation.
In terms of the estimation through PPML, this does not cause any troubles, of course, since EMI is known for the whole historical period.
ppml EMI MR DUM_COUNTRY*
However, the problem arises when I want to predict migration given that EMI appears on both sides of the equation. Is there any way to get Stata to solve this through PPML? It seems necessary to add a loop where MR is defined, but I'm not quite sure how to get it to work.
Any assistance would be greatly appreciated.
Ainhoa
Related Posts with PPML Prediction, Dependent Variable on Both Sides
How to do a special histogram like this in Stata?Hello, I saw a histogram by group like below. I want to use the classical Stata data auto.dta to mim…
Getting selected variables from cvlassoMy read of "help cvlasso" is that e(varXmodel) should contain only variables chosen by cvlasso. Howe…
Question (Omitted for multicollinearity)Dear all, I am running some regressions in which I want to investigate the role of foreign technolo…
Create change variable for timeseries data.Hi, my problem is twofold. I downloaded a database containing gvkey, sic code, year (1995 - 2005), y…
Spatial Panel Data and Spatial Weight MatrixHi all, I use Stata 17 to create a spatial panel dataset of more than 3000 US counties and 5 time p…
Subscribe to:
Post Comments (Atom)
0 Response to PPML Prediction, Dependent Variable on Both Sides
Post a Comment