Dear all,
I have a set of panel data called u, and it looks like this:
I want to see if u's trend over time, more specifically, to see if variable u has a great within variation over time.

I have tried the following:
I got error: repeated time values within panel
r(451);
I read this FAQ but I'm still not sure how to fix this problem. https://www.stata.com/support/faqs/d...d-time-values/
Or can I just do:
and see the standard error?
Your advice would be highly appreciated.
I have a set of panel data called u, and it looks like this:
Code:
year country industry u ------------------------------- 2010 A 01T 1 2010 B 01T 1.5 2010 C 01B 1.2 2010 A 02T 3 2010 B 02T 2.5 2010 C 02B 1.1 .... 2018 A 01T 2 2018 B 01T 3.5 2018 C 01B 2.1 2018 A 02T 2.1 2018 B 02T 1.5 2018 C 02B 2.1
I have tried the following:
Code:
xtset upstreamness year
r(451);
I read this FAQ but I'm still not sure how to fix this problem. https://www.stata.com/support/faqs/d...d-time-values/
Or can I just do:
Code:
collapse(mean) u, by(year) reg u year
Your advice would be highly appreciated.
Comment