[R] R - need more memory, or rejection sampling algorithm doesn't work?
    Ben Bolker 
    bolker at ufl.edu
       
    Tue Mar  3 14:39:16 CET 2009
    
    
  
ekwaters wrote:
> 
>> b12=log(.4/.6)
>> b13=log(.85/.15)
> 
> Can you point out the syntax errors in the first one?
> 
> 
  You have a double caret (^^). 
  f(k) should be f[k]
  Watch out for raising numbers to such large powers
(although to my surprise things didn't over/underflow
when I tried your code).
  Ben Bolker
-- 
View this message in context: http://www.nabble.com/R---need-more-memory%2C-or-rejection-sampling-algorithm-doesn%27t-work--tp22302800p22308778.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list