Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Summarize data

From   Patricia Biedermann <>
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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index