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
keep observations between the same rangeHi statalists, I have two variables, period and company. Period is the accumulative number of quart…
SEM and nonlinear regressionHello everyone. Earlier, I used 'Stata' to build non-linear regressions. Recently, I started using …
Help with analyzing survey data for presidential electionHello everyone, I am almost new to Stata and am trying to find the right model to fit my data which …
Using MatchitHi, I'm trying to merge two datasets based on a string variable; but the string variables don't matc…
margins in spatial panel data analysisHi, I have a problem using margins after the Spatial-AutoRegressive model, using xsmle. First I run…
Subscribe to:
Post Comments (Atom)
0 Response to a command to create a new variable starting from a specific year
Post a Comment