Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: collapse, split, generate new variables???


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: collapse, split, generate new variables???
Date   Sun, 19 Jan 2003 17:02:27 -0000

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/



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