Hello, I am trying to create basic descriptive stats for a survey that I administered. The survey uses a likert scale with five response options (1,2,3,4,5) for strongly disagree (1) - strongly agree (5). The items are organized into subscales so that each item has three to four sub-items (i.e. 6a, 6b, 6c). I am interested in obtaining some basic descriptive stats based on these sub-scales in addition to per individual item. So for example, I would like the mean, sd, number of missing, etc. for 6a, 6b, and 6c combined. If I am interested in the mean across a sub-scale (i.e. rq6a rq6b rq6c) instead of just one item (i.e. rq6a), is the code below the most efficient or is there a better way to get this result? I am using Stata 11 and the sample below (first 10 observations) is how my data are organized.
input byte(rq6a rq6b rq6c)
2 4 4
5 4 5
2 2 2
4 4 4
5 4 4
3 4 4
3 3 3
5 5 5
4 3 4
3 3 3
end
egen rq6mean = rowmean(rq6a rq6b rq6c)
sum rq6mean
Thanks for your help.
input byte(rq6a rq6b rq6c)
2 4 4
5 4 5
2 2 2
4 4 4
5 4 4
3 4 4
3 3 3
5 5 5
4 3 4
3 3 3
end
egen rq6mean = rowmean(rq6a rq6b rq6c)
sum rq6mean
Thanks for your help.
Comment