I have data set from two different time periods, the first periods from the year 1990 to 2019 and the second period is from the year 2006 to 2018. I am a new user to STATA and I want to create a new variable that starts from a specific year to another specific year, for example, the new variable will start from 2006 to 2018. I would be really grateful if someone could help with the code.
Thanks in advance
Ward
Related Posts with a command to create a new variable starting from a specific year
"Varlist required" error message in loop using local macroHi I'm trying to use a loop to generate a set of new variables representing the format of an existi…
no observations r(2000) error codeHello I have a dataset of daily stock return and cash dividends for all Danish listed firms. I am i…
mfp functionHow to estimate the function after fitting an mfp? I'm not looking at predict. I need the function s…
How to graph the interaction effects of two dummy variables?Hi, I am trying to graph an interaction between two dummy variables (s and p) to see if the interact…
misum error: variable _mj not foundDear all, I had used Daniel Klein's misum command in the past and never had an issue until now. I a…
Subscribe to:
Post Comments (Atom)
0 Response to a command to create a new variable starting from a specific year
Post a Comment