[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: expand data
--- Nikolaos Pandis
> The data is collapse. How could i expand the data so every patient
> from the center column would be in one row?
*------------- begin example -------------
clear
input dose freq events
1 10 2
2 11 7
3 10 15
10 10 70
end
expand freq
sort dose
list
*---------------- end example ---------------
-- Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/