Tim Churches wrote: > Myles English wrote: > > Hello, > > > > rpy 1.25 > > ubuntu 6.10 > > python 2.4 > > > > The code below can be copied and pasted in the R interpreter or an > empty > > file, as appropriate, to be run easily. The python code imports > > dataframe.py that is included as an example in the rpy distribution. > > > > My question is: > > > > Running the R code in the interpreter prints the list of hubertgamma > > values as: > > 0.6982304 0.6501113 0.5739095 0.5301628 0.4861548 0.4826513 > > 0.4579655 0.4465557 0.4329692 0.4092727 > > > > Running the RPy code in a shell prints the list of hubertgamma > values > > as: > > [0.052761567599982385, -0.0045159859941235163, > -0.047153537691912426, > > -0.018242422413064344, -0.022733831895949543, > -0.0033926040834361161, > > -0.020580660750514498, -0.018014109040888696, -0.012575979384130119] > > > > Why aren't these two lists the same? I think I am missing something > in > > the conversion. [code snipped] > > It doesn't look like you are setting the seed to the R random number > generator to 1 in the Python code - are you? If not, you will be using > two different sets of input values -> two different sets of answers. > > Tim C >
Thanks for noticing that Tim, however it doesn't make any difference to the results described above. Any other ideas? Myles ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list