Hi all,

I have the following database

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(idproduct Year recalls)
 2 2008 0
 2 2009 0
 2 2010 1
 2 2011 0
 2 2012 0
 3 2004 0
 3 2005 0
 5 2004 0
 5 2005 0
 5 2006 0
 5 2007 0
 5 2008 0
 5 2009 0
 5 2010 0
 5 2011 0
 5 2012 0
 5 2013 0
 6 2004 0
 6 2005 0
 6 2006 0
 6 2007 0
 7 2004 0
 8 2007 0
 8 2008 0
 9 2004 0
 9 2005 0
 9 2006 0
 9 2007 1
 9 2008 0
 9 2009 0
 9 2010 0
 9 2011 0
 9 2012 0
 9 2013 0
10 2004 0
10 2005 0
10 2006 0
10 2007 0
10 2008 0
10 2009 0
10 2010 0
10 2011 1
10 2012 0
10 2013 0
11 2009 0
12 2008 0
12 2009 0
12 2010 0
12 2011 0
12 2012 0
12 2013 0
13 2013 0
14 2004 0
14 2005 0
14 2006 0
14 2007 0
14 2008 0
14 2010 0
14 2011 0
14 2012 0
14 2013 0
15 2004 0
15 2005 1
15 2006 0
15 2007 0
16 2004 0
16 2005 0
16 2006 0
16 2007 0
16 2008 0
16 2009 0
16 2010 0
16 2011 0
16 2012 0
16 2013 0
17 2004 0
17 2005 0
17 2006 0
17 2007 0
18 2008 0
18 2009 0
18 2010 0
19 2007 0
19 2008 0
19 2009 0
19 2010 0
19 2011 0
19 2012 0
19 2013 0
20 2007 0
20 2008 0
21 2004 1
21 2005 0
21 2006 0
21 2007 0
21 2008 1
21 2009 0
21 2010 1
21 2011 0
22 2004 0
end
where basically are displayed products observed for a number of years in an unbalanced panel. Recalls is a dummy representing the occurrence of an event in a year for a product. I am running STATA 13 and I would like to make a time-to-event plot. Is it possible to do so? I tried but actually struggling.

Thank you,

Federico