We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
effectsize
wilcox.test
Maybe this is expected but it seems like the name of the object creates a conflict if it is the same as the variable (can close if expected).
x <- c(1.83, 0.50, 1.62, 2.48, 1.68, 1.88, 1.55, 3.06, 1.30) y <- c(0.878, 0.647, 0.598, 2.05, 1.06, 1.29, 1.06, 3.14, 1.29) z <- wilcox.test(x, y, paired = TRUE) # Works effectsize::effectsize(z) #> r (rank biserial) | 95% CI #> -------------------------------- #> 0.78 | [0.30, 0.94] # Fails x <- z effectsize::effectsize(x) #> Error: Unable to retrieve data from htest object. #> Try using 'rb()' directly.
Created on 2023-07-03 with reprex v2.0.2
The text was updated successfully, but these errors were encountered:
effectsize.wilcox.test
This is expected - insight::get_data() uses the names stored in the htest.
insight::get_data()
x <- c(1.83, 0.50, 1.62, 2.48, 1.68, 1.88, 1.55, 3.06, 1.30) y <- c(0.878, 0.647, 0.598, 2.05, 1.06, 1.29, 1.06, 3.14, 1.29) z <- wilcox.test(x, y, paired = TRUE) insight::get_data(z) #> x y #> 1 1.830 1 #> 2 0.500 1 #> 3 1.620 1 #> 4 2.480 1 #> 5 1.680 1 #> 6 1.880 1 #> 7 1.550 1 #> 8 3.060 1 #> 9 1.300 1 #> 10 0.878 2 #> 11 0.647 2 #> 12 0.598 2 #> 13 2.050 2 #> 14 1.060 2 #> 15 1.290 2 #> 16 1.060 2 #> 17 3.140 2 #> 18 1.290 2 x <- z insight::get_data(z) # No longer works. #> NULL insight::get_data(x) #> NULL
(Are you beginning to see that the htest class is 💩? Honestly, it's a miracle it works as good as it does...)
htest
Sorry, something went wrong.
Haha, thanks for clarifying this! Good reference for the future.
No branches or pull requests
Maybe this is expected but it seems like the name of the object creates a conflict if it is the same as the variable (can close if expected).
Created on 2023-07-03 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: