I have tried the following code but got an error message:
Code:
generate var1=1 if smoking_a =2 & smoking_a !=. & smoking_b =2 & smoking_b !=. & smoking_c =2 & smoking_c !=. invalid syntax r(198);
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.
generate var1=1 if smoking_a =2 & smoking_a !=. & smoking_b =2 & smoking_b !=. & smoking_c =2 & smoking_c !=. invalid syntax r(198);
0 Response to Create variable 0/1 based on other variables - error message
Post a Comment