[R] Cannot calculate confidence intervals NULL

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Wed Nov 15 22:18:55 CET 2023

On Wed, 15 Nov 2023 20:53:54 +0000 (UTC)
varin sacha via R-help <r-help using r-project.org> wrote:

> # Sample the data
>   d <- data[indices, ]
>  # Calculate the Spearman correlation coefficients for every sample
>   cor1 <- cor(x1, y1, method="spearman")
>   cor2 <- cor(x2, y2, method="spearman")

You're sampling the data into the `d` variable, but then you use the
original `x1`, `y1`, `x2`, `y2` variables unchanged. You need to access
the columns in `d` instead.

Best regards,

More information about the R-help mailing list