Displaying 1 result from an estimated 1 matches for "llbet".
Did you mean:
llber
2003 Jan 23
1
order() on vector with Inf's
I have a parameter vector, ibeta, and a corresponding vector of
loglikelihoods, llbet. If llbet contains no NAs or Inf's then I can
extract the best parameter by
index <- order(-llbet)[1]
beta <- ibeta[index]
or similar. The argument na.last of order() allows me to fix this up
even if llbet contains some NAs which I wish to ignore.
Unfortunately my llbet contains Inf&...