You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(correlation)
d<-data.frame(
x= sample(1:5, 20, TRUE),
y= as.ordered(sample(letters[1:5], 20, TRUE))
)
# Works
cor_test(d, "x", "y", method="polychoric")
#> Parameter1 | Parameter2 | rho | 95% CI | t(18) | p#> --------------------------------------------------------------#> x | y | 0.11 | [-0.35, 0.53] | 0.48 | 0.640#> #> Observations: 20# Doesn't work
correlation(d, method="polychoric")
#> Warning: It seems like there is not enough continuous variables in your data.#> Maybe you want to include the factors? We're setting `include_factors=TRUE` for#> you.#> Error: No random effects terms specified in formula
Has this issue been addressed? I am also experiencing issues with the polyserial calculation using correlation(). Not sure if it is a me issue or a bug
This issue has not yet been addressed - a major update to the package is in the works for this coming year (that will also address this issue) and all efforts are going towards that.
Created on 2022-09-12 by the reprex package (v2.0.1)
Session info
Less important but perhaps related, why do I need to set
include_factors=TRUE
forcorrelation()
and not forcor_test()
?The text was updated successfully, but these errors were encountered: