Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Generating random numbers


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Generating random numbers
Date   Wed, 25 Nov 2009 07:03:08 -0800 (PST)

--- On Wed, 25/11/09, Barth Riley wrote:
> I have written a program in Stata to create several
> datasets containing simulated item response values, which
> are based on randomly generated item response theory
> parameters. I am finding that the randomly generated
> parameters for each dataset are following a predictable
> pattern (one set of parameter values for odd-numbered
> datasets; another set of values for even-numbered datasets).

I would create one master do-file which calls each of the 
do-files that creates each dataset. I would set the seed 
only at the top of the master do-file. If you still get 
that pattern than that indicates something systematically
wrong with your algorithm. 

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index