Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: AW: st: string variable question

From   Eric Booth <>
Subject   Re: AW: st: string variable question
Date   Mon, 29 Mar 2010 10:11:33 -0500

On Mar 29, 2010, at 10:00 AM, Data Analytics Corp. wrote:
> This looks like it would work, But it's interactive. 

No, you can put the -input- command into a do-file, you don't have to use it from the command line.  

Also, you could use -replace- in a loop (-foreach- or -while- possibly in combination with -tokenize-)  to speed up that process.  
Another option might be to use -merge- to merge in a column of brand names.

~ Eric
Eric A. Booth
Public Policy Research Institute
Texas A&M University
Office: +979.845.6754
Fax: +979.845.0249

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index