Statalist


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

RE: st: expand data


From   Maarten buis <[email protected]>
To   stata list <[email protected]>
Subject   RE: st: expand data
Date   Tue, 3 Nov 2009 19:30:11 +0000 (GMT)

--- 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/



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