Hi all,

I'm trying to clean up my data to use it in a data panel, but I'm encountering several problems.

The mistake I'm getting is the following:
Code:
 
 xtset state1 fyear
repeated time values within panel
I will also post an example of the variables I am using fo this panel data:

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str8 state double fyear
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AB" 2009
"AL" 2009
"AL" 2009
"AL" 2009
"AR" 2009
"AR" 2009
"AR" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"AZ" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
"BC" 2009
end
State stands for US states, fyear stands for the fiscal year in which the values are recorded.
How can I solve this problem?

Thank you in advance.