Hello again,
After creating my two variables for start and stop exporting I want to make a graph where i want to show the sum of all the firms that start exporting and all the firms that stop exporting.
my command in stata is​ graph bar (sum) start (sum) stop, over year
But the problem is that I cannot count the number of firms that start exporting in 2003, because it is the first year of my dataset. And I cannot count stop exporting for year 2012, because it is my last year in the dataset.
So how can I make a graph in which I dont want the first year for start exporting, and I dont want the last year of stop exporting?
Thanks a lot
Code:
clear input int year float(start stop) 2003 0 0 2005 0 0 2006 0 0 2007 0 0 2008 0 0 2009 0 0 2010 0 0 2011 0 0 2012 0 0 2003 0 0 2004 0 0 2005 0 0 2006 0 0 2007 0 0 2008 0 0 2010 0 0 2011 0 0 2012 0 0 2003 0 0 2005 0 0 2006 0 0 2008 0 0 2003 0 0 2004 0 0 2005 0 0 2006 0 0 2007 0 0 2008 0 0 2009 0 0 2010 0 0 2012 0 0 2003 0 0 2004 0 0 2005 0 0 2006 0 0 2003 0 0 2004 0 0 2005 0 0 2008 0 0 2009 0 0 2011 0 0 2012 0 0 2006 1 0 2007 0 1 2003 0 0 2004 0 0 2005 0 0 2006 0 0 2007 0 0 2008 0 0 2009 0 0 2010 0 0 2011 0 0 2005 0 0 2006 0 0 2007 0 0 2009 0 0 2010 0 0 2005 0 0 2006 0 0 2008 0 0 2005 1 1 2003 0 0 2004 0 0 2006 0 0 2007 0 0 2008 0 0 2009 0 0 2010 0 0 2011 0 0 2012 0 0 2003 0 0 2005 0 0 2006 0 0 2007 0 0 2010 0 0 2011 0 0 2012 0 0 2003 1 0 2004 0 0 2005 0 0 2008 0 1 2006 1 0 2007 0 0 2009 0 0 2010 0 0 2011 0 0 2012 0 1 2003 0 0 2004 0 0 2005 0 0 2007 0 0 2008 0 0 2009 0 0 2010 0 0 2011 0 0 2003 0 0 2004 0 0 2005 0 0 2006 0 0 end
Comment