Skip to content
Prev 172335 / 398506 Next

R - need more memory, or rejection sampling algorithm doesn't work?

Ned,

Your first rejection sampling algorithm will not run as presented.  There
are syntax errors and no indication of where variables b12 and b13 get their
values from, so it is not possible to say for sure what the problem is.
However, it is not a memory problem (unless you have a broken system).
There are also problems in your second routine.  We need reproducible code
if you want R-help to do more than guess.

Dan 

Daniel Nordlund
Bothell, WA USA