. 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
Motivate (new user submitted command for Stata)Motivate is a new command that was added to SSC Code: ssc install motivate If you become frustra…
Interaction term in a quadratic modelMy basic cross-sectional (countrywise) model is based on regress life_exp gdp_pc_ppp sq_gdp_pc_ppp N…
Autocorrelation and other assumptions Diff in Diff modelHello, I am working on the following Diff in diff model: ln_sales = b0 + b1*treatment + b2*(treat…
cvlasso: What does the error message mean?Hi! I have multiple imputed datasets and try to variable selection by using the user-written cvlasso…
Find digit(s) in stringI realize that there have been hundreds of questions about extracting digits or numbers from strings…
Subscribe to:
Post Comments (Atom)
0 Response to Duplicates in panel settings
Post a Comment