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]
Re: st: AW: easier way to write many matrix names
From
Amanda Fu <[email protected]>
To
[email protected]
Subject
Re: st: AW: easier way to write many matrix names
Date
Tue, 13 Jul 2010 08:46:13 -0400
Dear Mr. Weiss,
Thanks very much for your help! The accumulated command you provide
works perfectly. I can use this logic on other similar problems I have
encountered. This is cool!
Best wishes,
Amanda
On Tue, Jul 13, 2010 at 3:13 AM, Martin Weiss <[email protected]> wrote:
> You can certainly accumulate the command in a -local- beforehand:
>
> *************
> ma drop _all
> forv i=1/29{
> loc name `name'A`i'\
> }
> loc name `name'A30
> di in r "`name'"
> *************
> HTH
> Martin
*
* 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/