Statalist


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

st: RE: expand data


From   "Nick Cox" <[email protected]>
To   <[email protected]>
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 
[email protected] 

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