[R] order() on vector with Inf's

Murray Jorgensen maj at stats.waikato.ac.nz
Thu Jan 23 10:38:13 CET 2003


ripley at stats.ox.ac.uk wrote:
On Thu, 23 Jan 2003, Murray Jorgensen wrote:
[useful suggestions omitted]

llbet[llbet==Inf] <- -Inf

should correct the problem, but why not correct the calculation?

Not a bad idea, but the numerical difficulties always occur well away 
from the likelihood maximum, and I'm only looking for reasonable 
starting values.

-- 
Dr Murray Jorgensen      http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz                                Fax 7 838 4155
Phone  +64 7 838 4773 wk    +64 7 849 6486 home    Mobile 021 1395 862




More information about the R-help mailing list