|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Error handling in -simulate-
-bs- employs little red crosses to indicate a failed draw, but continues
afterwards. Yet I think there is information content in a failed
replication. Why did it fail? I would start there. You might also want to
experiment with the -capture- command inside the program called by
-simulate-.
Martin Weiss
_________________________________________________________________
Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany
Fon: 0049-7071-2978184
Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130
Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131
SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Rachel
Sent: Wednesday, June 11, 2008 5:47 PM
To: statalist
Subject: st: Error handling in -simulate-
Consider a -simulate- command that stipulates R repetitions. Suppose
that the nth repetition of -simulate- produces an error. Is there any
way to make Stata simply run that repetition again? If that's not
possible, is there a way to make Stata continue on to the next
repetition so that the the resulting dataset produces R-1 observations
(instead of the intended R)?
Thanks very much,
Rachel
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/