Graphics of Time Series (tsset command isn't working due to repeated time values)

Hey everyone,

I have a question regarding the creation of graphics for time series.
I have two rows with one being the study subject ( ‘1’ denoting singles and ‘2’ denoting married couples).
Additionally I have a row called ‘year’ ranging from 2002 to 2012 with repeated values obviously.

Now I would like to create a graph with two lines (one for the singles and one for the married couples) showing how their percentage is changing from year to year (more specifically from 2002-2003-2004-2005-…-2012). The X-axis should be the Year and the Y-axis should show the distribution of both single and married people.

How do I do that? I am completely lost. I tried to set ‘year’ as time data using the tsset command, but it shows me an error 451 “repeated time values in sample”.

Could anybody help me, please? Thank you ☺