Statalist


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

st: one row for each individual


From   Chiara Mussida <[email protected]>
To   statalist <[email protected]>
Subject   st: one row for each individual
Date   Thu, 26 Mar 2009 10:09:54 +0100

Dear All,
i'm trying to get 1 row for each individual in my dataset.
The actual situation of my data: I have 3 rows for each, and
the indivv are identifiesd with the variable newID. Anyway, by
employing the command: bysort newID: keep if _n==1, I get 1 row for
each, but stata randomly select 1 row for every individual in this way
causing the loss of relevant info. each indiv has been interv in 3
waves (2004,2005, 2006), for each wave I gen the corresponding
categorical variables, which are the lase 36 colums of the dataset. I
would be pleased, given that these represent the labour market story
of each subject, to get all this info in 1 row.
Does anybody know the precise command to get this result?

Thanks a lot

-- 
Chiara Mussida
PhD candidate
Doctoral school of Economic Policy
Catholic University, Piacenza (Italy)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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