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

st: RE: Re: putting string variable values into macros


From   "reardon, sean f." <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: putting string variable values into macros
Date   Mon, 18 Jul 2005 12:41:52 -0700

ah yes ---
thanks ben and michael for the elegant overlooked answer.

sean.

_____________________________
 
please note new contact information:
_____________________________
 
sean f. reardon
associate professor of education and (by courtesy) sociology
school of education
485 lasuen mall, #315
stanford university
stanford, ca 94305-3096
650.736.8517 (office phone)
650.725.7412 (office fax)
[email protected]
_____________________________
 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael
Blasnik
Sent: Monday, July 18, 2005 12:31 PM
To: [email protected]
Subject: st: Re: putting string variable values into macros

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/


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