Error in bootstrapping: Error in if (const(t, min(1e-08, mean(t, na.rm = TRUE)/1e 06)))
问题 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