Statalist


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

Re: st: RE: expand data


From   Nikolaos Pandis <npandis@yahoo.com>
To   statalist@hsphsun2.harvard.edu
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 <n.j.cox@durham.ac.uk> wrote:

> From: Nick Cox <n.j.cox@durham.ac.uk>
> Subject: st: RE: expand data
> To: statalist@hsphsun2.harvard.edu
> 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 
> 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/
> 


      

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