Statalist The Stata Listserver


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

Re: st: Question for listserve


From   Kyle Hood <[email protected]>
To   [email protected]
Subject   Re: st: Question for listserve
Date   Wed, 18 Apr 2007 13:24:19 -0400 (EDT)


try this...

. local timestr = c( current_time )

. local time = real( substr( "`timestr'" , 1 , 2 ) )*10000+real(substr( "`timestr'" , 4 , 2 ))*100+real(substr( "`timestr'" , 7 , 2 ) )

. local seednum = 100000*date( c( current_date ) , "dmy" ) + `time'

. mvprobit..., seed( `seednum' )


On Wed, 18 Apr 2007, [email protected] wrote:


I am using mvprobit module and using seed option. I do not want to use the
default 123456789 seed nor want to specify in each repeat regression a new seed
number. Is there a way to automate random seed number generation?

Thanks,

Anjum Khurshid
The University of Texas at Austin
*
*   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/



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