Statalist


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

st: RE: expand data


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: expand data
Date   Tue, 3 Nov 2009 19:26:48 -0000

expand no_of_patients 
bysort dose : gen eventshown = _n <= no_exhibiting 

Please do see the -help- file. Otherwise please explain specifically
what it is that you do not understand. 

Nick 
n.j.cox@durham.ac.uk 

Nikolaos Pandis


I have 3 columns

dose   no of patients     no exhibiting the event

1        100                   2
2        110                   7
3        100                   15
.................................
10       100                   70

The data is collapse. How could i expand the data so every patient from
the center column would be in one row?  


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index