Bookmark and Share

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: AW: st: string variable question


From   Eric Booth <[email protected]>
To   [email protected]
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
[email protected]
Office: +979.845.6754
Fax: +979.845.0249
http://ppri.tamu.edu


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index