. 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.
Related Posts with Duplicates in panel settings
Averaging the treatment effects of several regressions based on synthetic controlsHi, As far as I understand, the synth (synthetic control) only can have one unit under treatment ag…
Dropping variables does not change the min and max values in summary statistic why?Hi, I am working on a confidential dataset from a virtual desktop which does not permit me to share…
Meta-analysis Ipdmetan (ssc) versus meta forestplotHi, I am doing meta-analysis for individual patient data. I get different overall results when I us…
Windows 10 window title bar - how to show filename firstHi there Stata/IC version 16.1 on Windows 10 Is there a way to swap the information displayed on t…
Postfile only posts results of first iteration of the loopDear statalist, I have a big file that overwhelms my memory when I try to run my script. Therefore,…
Subscribe to:
Post Comments (Atom)
0 Response to Duplicates in panel settings
Post a Comment