Dear Bert,
Dear All,
Yes, thanks ! that was the problem!
Le mercredi 15 novembre 2023 à 22:21:53 UTC+1, Bert Gunter
a écrit :
I believe the problem is here:
cor1 <- cor(x1, y1, method="spearman")
cor2 <- cor(x2, y2, method="spearman")
The x's and y's are not looked for in data (i
I believe the problem is here:
cor1 <- cor(x1, y1, method="spearman")
cor2 <- cor(x2, y2, method="spearman")
The x's and y's are not looked for in data (i.e. NSE) but in the
environment where the function was defined, which is standard evaluation.
Change the above to:
cor1 <- with(d, cor(x1, y1
On Wed, 15 Nov 2023 20:53:54 + (UTC)
varin sacha via R-help 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
R-Experts,
Here below my R code working without error message but I don't get the results
I am expecting.
Here is the result I get:
[1] "All values of t are equal to 0.28611928397257 \n Cannot calculate
confidence intervals"
NULL
If someone knows how to solve my problem, really appreciate.
Bes
4 matches
Mail list logo