Hi, I am new to STATA and would need some help. I have a large set of data that looks like the following, with multiple firms per year. How can I xtset? When I tried this " xtset ID Year, yearly", there is an error "repeated time values within panel". So I decided to go ahead with "xtset ID" instead. But I am not sure whether am I doing it right, I guess not because when I run a regression"xreg, fe" I have 6000 observations missing, furthermore, there are two variabes that are omitted due to collinearity. Thanks in advance for your help.
| ID | Year | Name |
| 1 | 2000 | ABC |
| 1 | 2001 | ABC |
| 1 | 2002 | ABC |
| 1 | 2003 | ABC |
| 2 | 2002 | CDE |
| 2 | 2003 | CDE |
| 2 | 2004 | CDE |

Comment