easystats / performance

:muscle: Models' quality and performance metrics (R2, ICC, LOO, AIC, BF, ...)
https://easystats.github.io/performance/
GNU General Public License v3.0
965 stars 87 forks source link

Error checking normality for t.test #689

Closed cmartin closed 4 months ago

cmartin commented 4 months ago

Trying this piece of code from the examples :

library(performance)
t.test(mtcars$mpg, mtcars$hp, var.equal = TRUE) |> check_normality()

Produces the error Error in eval(predvars, data, env) : object 'Value' not found

I did a bit of digging and the error seems to come from this performance line :

m <- stats::lm(formula = Value ~ factor(Name), data = datawizard::data_to_long(data))

Apparently, my version of data_to_long now return Value and Name in lowercase

I'm using R 4.3.0 on Mac, with performance 0.10.9 and datawizard 0.9.1

Thank you for your time and great package!

strengejacke commented 4 months ago

Thanks, should be fixed