. 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
Too many predictors when using Time fixed effects for panel dataHello, I am running an xtreg-fe cluster(panelvar) on monthly data. I employ time-fixed effects too. …
How to merge two datasets (string and integer values in ID)Dear all, I have two datasets: household and individual data. Usually, it is quite straightforward t…
create variables for number of hh member by categoriesHi Stata expert. I'd like to regress an employment model. I have variables and datasets as shown bel…
Tagging neighborhood houses within timeframeI have a dataset with property ID, longitude, latitude, listing date and closing date (sale of prope…
doubt regarding standard deviation using egen functionI have tried to find row wise sd for a set of variables from i_a_0 to i_c_1 syntax: egen rowsd2 = ro…
Subscribe to:
Post Comments (Atom)
0 Response to Duplicates in panel settings
Post a Comment