Can we create a new variable named "MID"
Such that MID=1 if "experience">=3 & "experience"<=8 and "imprints" during 1st and 2nd year is ==1
Such that MID=1 if "experience">=3 & "experience"<=8 and "imprints" during 1st and 2nd year is ==1
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long stockcode int year str40 name float(experience imprints MID) 1 2006 "APPIGNANI Antonio" 1 1 0 1 2007 "APPIGNANI Antonio" 2 1 0 1 2008 "APPIGNANI Antonio" 3 0 1 1 2009 "APPIGNANI Antonio" 4 0 1 1 2010 "APPIGNANI Antonio" 5 0 1 1 2011 "APPIGNANI Antonio" 6 0 1 1 2012 "APPIGNANI Antonio" 7 0 1 1 2013 "APPIGNANI Antonio" 8 0 1 1 2014 "APPIGNANI Antonio" 9 0 0 1 2015 "APPIGNANI Antonio" 10 0 0 1 2016 "APPIGNANI Antonio" 11 0 0 1 2017 "APPIGNANI Antonio" 12 0 0 1 2018 "APPIGNANI Antonio" 13 0 0 1 2019 "APPIGNANI Antonio" 14 0 0 2 2006 "TIM" 1 0 0 2 2007 "TIM" 2 0 0 2 2008 "TIM" 3 0 0 2 2009 "TIM" 4 0 0 2 2010 "TIM" 5 0 0 2 2011 "TIM" 6 0 0 2 2012 "TIM" 7 0 0 2 2013 "TIM" 8 0 0 2 2014 "TIM" 9 0 0 2 2015 "TIM" 10 0 0 2 2016 "TIM" 11 0 0 2 2017 "TIM" 12 0 0 end
Comment