Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Patricia Biedermann <pati.stat@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Summarize data |
Date | Fri, 8 Jun 2012 18:46:06 +0200 |
Dear all, I need to summarize data in the following way: My questionnaire looks like that: Question 1 option1 option2 option3 (options are numeric 1-5) Question 2 Question 3 Etc. (up to 16 question in the same structure) The database in STATA looks like that: ID Q1A Q1B Q1C Q2A Q2B Q3B …ETC (GROUP) Respectively option1 of question 1 represents Q1A Now I want to summarize the data of all questionnaires in that way: - summarize (mean) option 1 for ALL QUESTIONS AND ALL questionnaires (mean of Q1A, Q2A, Q3A,...etc) - summarize (mean) option 2 etc…(mean of Q1B, Q2B, Q3B,...etc) So, maybe the solution is simpler then I think or my database is crap…but can anyone help me to figure out the right commands? (I already tried sum and collapse commands...) Is there also a possibility to summarize it by grouping (same questionnaires, but e.g. different location of interview…) Thanks a lot! * * 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/