Lassen, Peter
>
> I have a dataset where each person is represented by
> several cases, varying from 2 to 17. The reason why a
> person have more than one hit is a education variable
> (string) containing all educations attended in a lifetime
> for each person.
>
> Now I want to examine whether men and women attend the same
> courses equally - Therefore I need to "collapse or spilt?"
> the educational variable into several (17) new
> (dummy)variables, so each person is only represented once.
> How on earth do I manage that??
>
One short answer is -reshape, wide-.
Please see the recent FAQ
How do I deal with multiple responses?
http://www.stata.com/support/faqs/data/multresp.html
Nick
[email protected]
*
* 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/