Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: how to add specific letter to string macro


From   Oleksandr Shepotylo <shepotil@econ.umd.edu>
To   Stata <statalist@hsphsun2.harvard.edu>, Oleksandr Shepotylo <shepotil@econ.umd.edu>
Subject   st: how to add specific letter to string macro
Date   Mon, 08 May 2006 16:35:24 -0400

Dear Statalist users,

Suppose that I have a local macro

loc X = " a b c"

I want to create a local macro

loc WX="wa wb wc"

The problem is that I want to automate the process and write a code that will create `WX' based on string stored in `X'.

Can anyone help me with this?

Thanks,

Oleksandr Shepotylo.
*
* 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