Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Socio-economic multi-variable analysis


From   "Todd Swarthout" <[email protected]>
To   <[email protected]>
Subject   RE: st: Socio-economic multi-variable analysis
Date   Sun, 10 Dec 2006 10:03:56 +0100

Im sorry, let me try to explain again...I suspect the answer is quite
easy.

I have 350 questionnaires, each with an ID number (variable = idno).
There are 11 questions having to do with socio-ecinomic status
(variables 48a - 48k)...thus each questionnaire can have up to 11 total
yes responses for these questions. I would like to know which ID Numbers
(idno) have 1, 2, 3, 4...or 11 'yes' response within these 11
questions...without having to do a command for each ID number.

Maybe something like "list idno if 48a-48k 'contain' 1 yes
responses"...and then perhaps I could do this command for each possible
number of 'yes' responses.

"list idno if 48a-48k 'contain' 1 yes responses"
"list idno if 48a-48k 'contain' 2 yes responses"
"list idno if 48a-48k 'contain' 3 yes responses"

Etc...

In the end Id like the table

ID No./ No. 'yes' responses in questions 48a - 48k	
	/
	/


Thanks

Todd

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index