Statalist


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

Re: st: RE: expand data


From   Nikolaos Pandis <[email protected]>
To   [email protected]
Subject   Re: st: RE: expand data
Date   Tue, 3 Nov 2009 12:30:19 -0800 (PST)

Dear Nick,

It worked!

Many thanks

Nikolaos
--- On Tue, 11/3/09, Nick Cox <[email protected]> wrote:

> From: Nick Cox <[email protected]>
> Subject: st: RE: expand data
> To: [email protected]
> Date: Tuesday, November 3, 2009, 9:26 PM
> 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/
> 


      

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