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
option horizontol not allowedHi guys! While making a graph I got this error: r198, `` option horizontal is not allowed `` coefp…
Missing Eigenvalues and EigenvectorDear Statalisters, I'm puzzled by a square matrix for which all eigenvalues and eigenvectors relate…
How to set the hazard rate to zero in hshaz?Hi everyone, I am trying to estimate the impact of a hiring subsidy on the survival rate of employe…
Create a loop for regressionsGood morning everybody, I have a dataset with 150 variables and I would like to create a loop to pe…
Congratulations to Nick Cox for reaching 20,000 postsAs is customary in this list, we send congratulatory messages to users who reach milestones. So cong…
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