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
How to drop repeated years in a panel datasetHi everyone, I have a panel dataset with countries and years from 1999 to 2019. However, for each c…
Dummy dependent: ANOVA v logitThis is a statistics question rather than a Stata question, but would appreciate any advice. After …
Subgroup Analysis and Sample Selection BiasI employ a DiD model and want to compare the effect of independent variable (post##treatment) on a d…
m:m merging - clarificationHi there, I have 2 datasets; one shows the data of patients who were diagnosed with cancers and the…
Baseline table package showing p-value and statistics-value There has been some useful table1 package, such as table1 and table1_mc. However, they can not show…
Subscribe to:
Post Comments (Atom)
0 Response to a command to create a new variable starting from a specific year
Post a Comment