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: RE: comparing yearly surveys (graphs)
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: comparing yearly surveys (graphs)
Date
Mon, 24 Jan 2011 19:18:50 +0000
Specifically on -catplot- from SSC, which I wrote: I don't understand your comment "but it's side by side". Any way, an -hbar- is just the default. You can -recast(bar)- or -recast(dot)-.
I don't understand the enthusiasm here, or indeed anywhere, for overlapping bars, but -catplot- can be coaxed, or coerced, into producing them.
-tabplot- from SSC is also dedicated to categorical data, among other alternatives.
Nick
[email protected]
Lucie Vlach
I need to visually compare survey results that will be done each year. (Virtually all same questions each year).
I have unique IDs for each respondent, and I created a variable for the year as "survey_yr" and use 2010, 2009 etc..
Is there a nice graph that would show each question comparing by the years?
"our_ID","survey_yr","q1position", etc.....
"24","2010","1","3.5","13.5","1",etc..."
"25","2010","1","8","4","2","6","0", etc...
I tried this:
catplot "myvariable1", percent by (survey_yr) ysize(3) ytitle (Title of the chart) blabel (bar, format (%4.1f))
This works well, but it's side by side. Is there anything that would do either frequencies of the categorical data or percentages that will show the bars overlapping or showing clearly the differences between years?
I am not very good at Stata, so I am looking for something easy for Stata-dummies.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/