I wonder what mechanics makes random number functions to produce
different result under TEMPORARY. Compare: set rng= mc seed= 494676727. compute x= uniform(1). print /x. execute. echo '----'. set rng= mc seed= 494676727. temporary. compute x= uniform(1). print /x. execute. echo '----'. .66 .76 ---- .10 .42 ---- ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
I don't know why the TEMPORARY sequence is different - maybe TEMPORARY is grabbing some random numbers from the generator - but I would recommend that you use the MT generator rather than MC as it has better randomization properties. You can set the seed for that, but you cannot show the state, because the state is 64K long. On Sun, Mar 28, 2021 at 6:58 AM Kirill Orlov <[hidden email]> wrote: I wonder what mechanics makes random number functions to produce |
MT generator does not change it, the behaviour under TEMPORARY.
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
In reply to this post by Jon Peck
It looks really strange. The presence of TEMPORARY should not affect
random number generation. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
In reply to this post by Jon Peck
Maybe somebody from SPSS (besides Jon) will come to explain why it
is so? The issue is interesting and quite important.
28.03.2021 20:23, Jon Peck пишет:
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Free forum by Nabble | Edit this page |