Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Selecting particular data for bar graphs
From
Gilad Isaacs <[email protected]>
To
[email protected]
Subject
st: Selecting particular data for bar graphs
Date
Wed, 12 Feb 2014 16:15:42 +0200
Hi,
I am relatively new to Stata so hopefully this is not too elementary a question.
I have a data set, it consists of 42 observations from the years 1960
to 2012 for 10 different variables, each of which are a country. The
data is each country's interest rate for that year.
I want to create a bar graph. I want the graph to have four sets of
bars. Each set contains a bar for each country and shows the average
interest rate for that decade. So the first set is 1960 - 1969, and
shows the average for each country over that period, the second set
shows 1970 - 1979, and has one bar for each country, etc.
I don't see such an option using the "graph bar" command. Should I
create the averages separately and then graph those? If so do I need
to create the averages in another file and then use that file?
Thanks very much,
Gilad Isaacs
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/