Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: error


From   Gary Longton <[email protected]>
To   [email protected]
Subject   Re: st: error
Date   Thu, 23 Mar 2006 13:10:47 -0800

Rudy Fichtenbaum wrote:

I am trying to follow the example of the monte carlo demonstration on p 234 of the Stata Reference Manual R under simulate.

When I submit . simulate _b _se , reps(10000):hetero1 3 I get the following error

too few ')' or ']'
an error occurred when simulate executed hetero1
r(132);

I do not see how my parentheses are unbalanced so I am not sure what is causing this error.
Tom Steichen identified the likely location of errors in your reproduction of -hetero1-.

I just wanted to add that, more generally, you may need to write somewhat more complicated programs than -hetero1- to use with -simulate-.
It is best to run and debug your user-written programs before calling them with -simulate-. You can identify offending lines or sections of code using the -trace- utilities. See -help trace- and [P] trace.

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




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index