Error in bootstrapping: Error in if (const(t, min(1e-08, mean(t, na.rm = TRUE)/1e 06)))

别来无恙 提交于 2019-12-06 10:45:32

问题


I get the following error message when calculating bootstrap confidence intervals with the "boot" package:

Error in if (const(t, min(1e-08, mean(t, na.rm = TRUE)/1e+06))) { : 
  Missing Value, where TRUE/FALSE is necessary

This error occurs only if I want to calculate bootstrap confidence intervals for spearman correlation coefficients across countries of a specific variable and is thus not easily reproduced. For many variables the code runs nicely, but for this specific one I obtain the above error message. This particular variable has not caused any trouble anywhere else for me so far, which makes me doubt that it is about this variable. Can anybody give me a hint as to what the above error message might be hinting at?

来源:https://stackoverflow.com/questions/19929488/error-in-bootstrapping-error-in-if-constt-min1e-08-meant-na-rm-true-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!