Dear Statalist,
I have a data set with around 300,000 observations that contains YEAR, TITEL and COLOUR. The variable YEAR ranges from 1800 to 2000 and there are 18 manifestations for COLOUR.
I want to create a graph with a Moving Average, that summarizes the amount of titles (y-axis) over 10/25/50 years (x-axis) by colour. There are repeated values of TITLES per YEAR and COLOUR.
I already tried to follow the manual of “Stata 7: How can I calculate moving averages for panel data?”
(https://www.stata.com/support/faqs/s...nd-panel-data/)
The problem is, that I can not declare my data to be a time series. Stata gives me the error message:
“repeated time values within panel”
How can I create a Moving Average and a table that contains the respective results.
Kind regards and thank you very much,
Rike Lich
I have a data set with around 300,000 observations that contains YEAR, TITEL and COLOUR. The variable YEAR ranges from 1800 to 2000 and there are 18 manifestations for COLOUR.
I want to create a graph with a Moving Average, that summarizes the amount of titles (y-axis) over 10/25/50 years (x-axis) by colour. There are repeated values of TITLES per YEAR and COLOUR.
I already tried to follow the manual of “Stata 7: How can I calculate moving averages for panel data?”
(https://www.stata.com/support/faqs/s...nd-panel-data/)
The problem is, that I can not declare my data to be a time series. Stata gives me the error message:
“repeated time values within panel”
How can I create a Moving Average and a table that contains the respective results.
Kind regards and thank you very much,
Rike Lich
Comment