Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: how to 'append' scalars and convert to a variable


From   "Steve Martin" <stephen.martin@york.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: how to 'append' scalars and convert to a variable
Date   Sun, 1 Jan 2012 15:39:40 -0000

I use -forvalues- to apply a block of code 100 times.  Each loop concludes
with the generation of a scalar called S1.  This contains a number.  

Is it possible to 'append' the values in these numeric scalars to form a
variable with 100 observations?

Thanks.

Steve  

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index