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

st: RE: Time taken for reshape command


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Time taken for reshape command
Date   Tue, 18 May 2004 17:07:36 +0100

I would have thought that more information 
was needed on your machine set-up and how 
much memory you asked of Stata to assess this. 

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

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Subhankar
> Nayak
> Sent: 18 May 2004 17:05
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Time taken for reshape command
> 
> 
> Hello all,
> 
> The "reshape" command that I am using takes an extremely long 
> time and I am
> not sure whether this is normal.
> Let me mention the details.
> 
> I have 1000 observations and 926 variables.
> 
> Variable: "ID"  takes values from 1 through 1000. (denoting 
> 1000 companies)
> Variable  "Y"   is a specific corporate value
> 924 variables: X1 through X924 denote the 924 past stock prices.
> 
> I am reshaping it in the long format into 924000 observations and 3
> variables (ID,Y,X) using
> reshape long X, i(ID) j(DAYS)
> 
> This single command takes 10-12 minutes to process.
> Is this normal?
> 
> Thanks.
> 
> 
> *
> *   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/
> 

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