Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: expand an agrregated file


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: expand an agrregated file
Date   Wed, 27 Aug 2003 13:20:30 +0100

ann fitzmaurice
 
>  i have a file in the following format
> 
> region	lgd	pop_lgd pop_region
> 1	1	20	65
> 1	2	45	65
> 2	1	10	25
> 2	2	15	25
>   There are other variables and populations with the 
> variables but this is
> just a small example
> 
> i would like to create a data set that is case based so 
> instead of 4 lines
> in the above example will have 90 lines - i have looked at 
> expand but am
> not sure if this is the command to use

Yes, it is. 

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

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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