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

st: Re: putting string variable values into macros


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: putting string variable values into macros
Date   Mon, 18 Jul 2005 15:30:51 -0400

Why not:

forv n=1/20 {
local mac`n'=x[`n']
}

Michael Blasnik
[email protected]

----- Original Message ----- From: "reardon, sean f." <[email protected]>
To: <[email protected]>
Sent: Monday, July 18, 2005 3:21 PM
Subject: st: putting string variable values into macros

i want to create a series of local macros that contain the values of a
string variable:  <snip>
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index