I'm trying to generate a variable (steponecpn) so that is represents the change in Cumulative Plane Number (cpn) from one month to the next.
I've accomplished this with this code:
Code:
gen steponecpn=cpn-cpn[_n-1]
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 steponecpn=cpn-cpn[_n-1]
0 Response to Problem generating a new variable based on previous values
Post a Comment