Hello:
I am relatively new to Stata and I want to confirm what the program does with data in a dataset when lagged variables are employed.
I have panel data with annual observations of the number of overseas trips the UK Prime Minister and Foreign Minister made to other specific countries between 1992-2019 (xtset country year). Though I am only interested in this post-Cold War time period, my dataset runs from 1990-2019 because I am lagging several of my independent variables by one year (L.) and in one case two years (L2.).
Am I correct in thinking that when I run a regression that the observations for 1990 and 1991 will not be dropped because there will be no data for the L1 or L2 to reference?
To put it another way, how do I ensure that only the years I want (1992-2019) are included in the analysis and that the additional observations (1990 and 1991) are only used to provide information for the lagged variables?
Thanks in advance!
I am relatively new to Stata and I want to confirm what the program does with data in a dataset when lagged variables are employed.
I have panel data with annual observations of the number of overseas trips the UK Prime Minister and Foreign Minister made to other specific countries between 1992-2019 (xtset country year). Though I am only interested in this post-Cold War time period, my dataset runs from 1990-2019 because I am lagging several of my independent variables by one year (L.) and in one case two years (L2.).
Am I correct in thinking that when I run a regression that the observations for 1990 and 1991 will not be dropped because there will be no data for the L1 or L2 to reference?
To put it another way, how do I ensure that only the years I want (1992-2019) are included in the analysis and that the additional observations (1990 and 1991) are only used to provide information for the lagged variables?
Thanks in advance!
Comment