Hello nice people, I hope you are all doing okay.
Please I need assistance for a Stata command on creating lagged variables for a panel data set that is not in a long format , and I have used country j's id for xtstet.
I am using Stata 15 and I am estimating a gravity model for Tanzania exports. My worry is that country i's (exporter) GDP is part of dependent variable exports , which will lead to endogeneity, hence I want to create lagged variable for exporters or country i's GDP . Can someone help me with the commands and how to go about it. I hope to hear from you soon. Thank you.
Related Posts with Creating lagged variables in a panel data set that is not in the long format
Gini coefficient standard errorsDear all, Is there any Stata module available that is able to produce Gini coefficients with standa…
Creating Two Matrices from a Data FileDear Statalisters: I have a data file in the following format: clear input str2(firmid ownerid) floa…
How to make interactive pie charts (three)?How to create a graph with interactive pie charts (three). For example, I made a graph (find below) …
Within .ado files, is there a way to restore data but keep, until the end of program, tempvars created by the program?Dear All, I have a somewhat involved problem, but I think it boils down to this. I'm writing a progr…
Expanding dataset to make it balanacedHi All, My current dataset resembles the following: Code: * Example generated by -dataex-. To ins…
Subscribe to:
Post Comments (Atom)
0 Response to Creating lagged variables in a panel data set that is not in the long format
Post a Comment