Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | econqian222 <maguixianstatalist@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: loop for bootstrap ? |
Date | Wed, 2 May 2012 01:04:56 -0700 (PDT) |
Dear all I want to run a bootstrap by product(1,2,3,...) , the command is written as: bysort product: bootstrap rmse=e(rmse), reps(100) seed(12345): regress value quantity index unfortunately, the program can't run successfully. the format of the data goes as following product quantity value index > 1 5.605 .064 7 > 1 27.3518 3.96556 3 > 1 2.76541 .597 6 > 2 727.906 77.711 12 > 2 396.779 82.386 18 > 3 35.8568 .783239 4 > 3 19.6898 .128481 3 If this bootstrapping method can't be combined with "bysort", then How to write a loop for this bootstrap? Many thanks Qian -- View this message in context: http://statalist.1588530.n2.nabble.com/loop-for-bootstrap-tp7519342.html Sent from the Statalist mailing list archive at Nabble.com. * * 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/