Code:
gen year1a=1 if yr <=ei +1
While ei=2008 and yr=2009, year1a =. , exactly what I want.
It is quite strange to me because previously when using SAS, "." is the lowest number.
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.
gen year1a=1 if yr <=ei +1
0 Response to Why the logical in Stata of calculating missing observation is quite strange
Post a Comment