Skip to content
Prev 6281 / 15075 Next

rnorm.halton

I get very different output from the two versions of Mac OSX R as  
well. The 32 bit version puts out a histogram that has an expected,  
almost symmetric unimodal distribution. The 64 bit version created a  
bimodal distribution with one large mode near 0 and another smaller  
mode near 10E+37. Postcript output attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 64bit-halton.ps
Type: application/postscript
Size: 3802 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20090915/c87f5e55/attachment.ps>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 32bit-halton.ps
Type: application/postscript
Size: 3772 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20090915/c87f5e55/attachment-0001.ps>
-------------- next part --------------


Neither version seemed to change with repeated invocations which I  
thought odd in what I thought would be  graphic realization of random  
function, but then I don't know much about this area of statistics, so  
I don't know is the output is supposed to appear deterministic.

Running the suggested replacement causes an error on both 32 bit and  
64 bit machines:
 > hist(halton(n = 5000, dim = 1, norm=TRUE), main = "Normal Halton",
+ xlab = "x", col = "steelblue3", border = "white")
Error in hist(halton(n = 5000, dim = 1, norm = TRUE), main = "Normal  
Halton",  :
   could not find function "halton"

 > sessionInfo()
R version 2.9.1 Patched (2009-07-04 r48897)
x86_64-apple-darwin9.7.0

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] fOptions_290.75    fBasics_2100.77    MASS_7.2-47         
timeSeries_2100.83 timeDate_290.85