year | groupID | personID | X | Y |
2005 | 100 | 1 | 1 | 0 |
2005 | 100 | 2 | 0 | 1 |
2006 | 101 | 1 | 0 | 1 |
2006 | 101 | 2 | 1 | 0 |
Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.
Saturday, March 28, 2020
Creating new variables depending on existing ones
Hi everyone. I have four variables in the dataset: year, groupID, personID and X. I would like to create a new variable Y such that within each year and each group, Y equals the value of X of personID==2. I was thinking about using egen and for loop. Thanks!
No comments:
Post a Comment