. A question that has come up before to forum.
​​​ I am trying to declare dataset to be a panel and I am getting and error
[CODE][]
xtset ID ts
repeated time values within panel
ID stands for the country id and ts for year/CODE]

That means I am having duplicates. I am aware of the presence of duplicates ts for some years from the nature of the dataset and it is desired dataset to remain as such. Any way to solve it while keeping the multiple years when that occurs?
I have searched in the forum before posting didn't find a suitable solution. From some old posts, I think I might have to create a new time variable, didn't get how, nonetheless.