[R] how to deal with NaN in "boot" object

Jinsong Zhao jszhao at mail.hzau.edu.cn
Fri Sep 5 02:37:07 CEST 2008

Hi there,

I use boot() to do bootstrap simulation on my statistic, I get a boot
object, named "obj". For certain reasons, there are some "NaN" in obj$t.
Now, I hope to get confidence interval using boot.ci(), it give the
following error:

Error in if (const(t, min(1e-08, mean(t)/1e+06))) { :
  missing value where TRUE/FALSE needed

Now, what I could do is I have to edit the obj by hand.

Any suggestions? Thanks in advanced!

Best wishes,

More information about the R-help mailing list