I am using Stata 15 on Windows 10 OS. I have data collected in several rounds as demonstrated in the example below
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(id round var1 var2) str3 var3 int var4 str3 var5 1 1 1 25 "Yes" 2500 "Yes" 1 2 1 23 "Yes" 2500 "Yes" 2 1 1 60 "Yes" 1000 "No" 2 2 2 60 "No" 1000 "No" 3 1 2 75 "Yes" 3500 "Yes" 3 2 2 75 "Yes" 3500 "No" end
Thanks in advance!
Best,
Stephen.
0 Response to Changing data based on condition
Post a Comment