Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: grid search by product code |
Date | Tue, 1 May 2012 19:38:24 +0100 |
This asks how to use a unspecified program. See the current thread on using -movestay-. If the program supports -by:- you can use it. If not, this sounds like a loop. Nick On Tue, May 1, 2012 at 6:55 PM, econqian222 <maguixianstatalist@gmail.com> wrote: > I want to run a grid-search program for by "product" , the format of > the data goes like following: product quantity value > 1 5.605 .064 > 1 27.3518 3.96556 > 1 2.76541 .597 > 2 727.906 77.711 > 2 396.779 82.386 > 3 35.8568 .783239 > 3 19.6898 .128481 > > How should I run the program by product(1, 2, 3,....)? * * 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/