Hello Stata users,
I started using Stata recently and at the moment I find myself in a dilemma. My database has millions of observations and about 30 variables. To get the regressions, I tried to balance my dataset with the worker identifiers variable (worker_id) with the time variable (year) first. The same worker can be found in several years, although it may be normal for it not to exist throughout the complete considered temporal sequence and only appear in a few years (from 2010 to 2018).
When executing the command "xtset worker_id year" the error "repeated time values within panel - r(451);" appears. How can I solve this problem?
Thank you for your attention.
Best regards!

Kate