Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

RE: AW: st: RE: set seed


From   sun samn <shwshang@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: AW: st: RE: set seed
Date   Sat, 22 May 2010 01:41:54 +0800

Hi Martin,
Right, I agree. But the problem is that the code does not work if the 'set seed' is off. Does this mean that there is something wrong with my code? 
thanks!
samn 



> From: martin.weiss1@gmx.de
> To: statalist@hsphsun2.harvard.edu
> Subject: AW: st: RE: set seed
> Date: Fri, 21 May 2010 09:23:20 +0200
> 
> 
> <> 
> 
> 
> 
> Attachments are not allowed on the list, even though the server apparently
> makes exceptions from this rule from time to time. Let`s just say that you
> do -generate- random numbers with the -rnormal()- function in there, so the
> -set seed- command does have at least some kind of effect...
> 
> 
> 
> HTH
> Martin
> 
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von sun samn
> Gesendet: Freitag, 21. Mai 2010 08:28
> An: statalist@hsphsun2.harvard.edu
> Betreff: RE: st: RE: set seed
> 
> 
> 
> 
> Hello Martin,
>    I attach the code for your reference. You can run it directly in stata
> with 'xtpqml' installed.
> Thanks,
> samn 
> 
> 
> 
> 
>> From: martin.weiss1@gmx.de
>> To: statalist@hsphsun2.harvard.edu
>> Subject: st: RE: set seed
>> Date: Thu, 20 May 2010 23:06:33 +0200
>> 
>> 
>> <>
>> -set seed- is intended to make random number generation replicable. Where
> is
>> the random element in what you are trying to do? It would be better if you
>> could provide your code so listers can see for themselves.
>> 
>> 
>> HTH
>> Martin
>> 
>> -----Original Message-----
>> From: owner-statalist@hsphsun2.harvard.edu
>> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of sun samn
>> Sent: Donnerstag, 20. Mai 2010 22:13
>> To: statalist@hsphsun2.harvard.edu
>> Subject: st: set seed
>> 
>> 
>> 
>> Hello, there,
>>      I do optimization ( actually is GMM). The calculation only works at
> the
>> seed of '110110'. Otherwise, I get the error message-the initial value not
>> feasible. If under the seed of 110110,  no matter what initial values I
> set,
>> the value function does not converge--it ends at .914161. Does someone
> help
>> me out with this?
>> Thanks a lot!
>> 
>> samn 
>> 
>> 
>>  		 	   		  
>> _________________________________________________________________
>> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
>> https://signup.live.com/signup.aspx?id=60969
>> *
>> *   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/
>> 
>> 
>> *
>> *   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/
>  		 	   		  
> _________________________________________________________________
> Hotmail: Powerful Free email with security by Microsoft.
> https://signup.live.com/signup.aspx?id=60969
> 
> 
> *
> *   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/
 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969
*
*   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   |   Site index