. 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
Simultaneous equation model with dynamic panelDear all: I am trying to estimate a four-equation simultaneous model, my dataset is a panel. Usuall…
Allocating cases to the class with the highest probabilty - Latent Class AnalysisHi Statalists, I am running a LCA with the gsem-command. My code is as follows: Code: gsem ( var…
Setting Stubhello everyone, I hope you are all well. I have a variable that indicates the region of residence of…
DiD and MatchingHi, I came across two commands that are supposed to do similar jobs: -kmatch- and -diff- Both of th…
Is the normalized dependent variable suitable for fractional model or tobit model?The range of my dependent variable Y is [0,inf). Since it is left censored to zero, the tobit model …
Subscribe to:
Post Comments (Atom)
0 Response to Duplicates in panel settings
Post a Comment