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: Item set in one Graph and one Tab
From
Jörg Eulenberger <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: Item set in one Graph and one Tab
Date
Fri, 15 Jun 2012 11:31:07 +0200
Dear Statalisters
sorry for this beginner question but i can't find a simple solution.
I have a dataset like this:
clear
input q1 q2 q3 q4
1 2 1 3
2 3 1 2
3 3 2 1
3 3 3 3
end
label var q1 "label1"
label var q2 "label2"
label var q3 "label3"
label var q4 "label4"
label define lab 1"aaa" 2"bbb" 3"ccc"
label value q1 lab
label value q2 lab
label value q3 lab
label value q4 lab
now i want to create a table like this (to use with estpost):
aaa bbb ccc
label1 10% 80% 10%
label2 30% 20% 50%
label3 90% 5% 5%
label4 25% 25% 50%
and a bar graph like this:
http://www.survey-design.com.au/graphs/catplot3.png
Is there a easy way to do this?
Best regards,
Jörg
*
* 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/