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
Related Posts with Unbalanced dataset
Plot confidence interval for linear mixed modelHi, I'm running a linear mixed model, and am now trying to plot a fitted line with a 95% CI for thi…
How can I Make these code to loop code ?Hi. I want to make loop code of below. Code: gen A01_GLU0_new =. replace A01_GLU0_new = A01_GLU0_…
Aggregating variablesGood day everyone, I am still an undergrad student so please excuse any elementary questions. I am…
Lags in time series with only trading daysHello together, for my thesis I have a dataset which contains stock prices over a period of 28 year…
Controlling for confounders in t-testsHi all, I'm a little stuck on a paper looking at differences in fasting glucose levels between diff…
Subscribe to:
Post Comments (Atom)
0 Response to Unbalanced dataset
Post a Comment