Hello,

Can somebody help me create a dummy variable?
I want to create a variable that is =1 if a reseracher has published in "Journal of population economics" in a certain year, and 0 otherwise.

Here is an example of the dataset I have: (Variable names are self explanatory)

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float Reseracher int Year long Publication str66 Channel
 35 2006  33963 "Daidalos"                                
 26 2009  43695 "Jurist- og Økonomforbundets Forlag"     
 26 2009  43696 "Jurist- og Økonomforbundets Forlag"     
 11 2006  53503 "Routledge"                               
 65 2006  53503 "Routledge"                               
 66 2006  54032 "Fagbokforlaget"                          
 65 2006  54473 "Fagbokforlaget"                          
  5 2006  54923 "Abstrakt forlag"                         
 65 2006  55447 "Fagbokforlaget"                          
 31 2006  55447 "Fagbokforlaget"                          
114 2005  59866 "Springer-Verlag"                         
 26 2004  67831 "Fagbokforlaget"                          
 92 2008 336163 "Journal of Economic Dynamics and Control"
114 2008 337356 "Optimization"                            
109 2008 337381 "Journal of Population Economics"         
 31 2008 337381 "Journal of Population Economics"         
114 2008 337433 "Journal of Economic Dynamics and Control"
 90 2008 337433 "Journal of Economic Dynamics and Control"
 78 2010 338899 "Acta Neurologica Scandinavica"           
 92 2010 339254 "Health Policy"                           
end