-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
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
Partial fail in new Box-Cox-handling in insight 0.99.0.15 #973
Conversation
Should this be available in insight 0.99.0.16? |
Yes |
It doesn't seem to be. Should I open a new issue? |
Works for me: library(insight)
packageVersion("insight") # ‘0.99.0.15’
#> [1] '0.99.0.16'
a <- aov(formula = (mpg ^ 1.3 - 1) / 1.3 ~ hp, data = mtcars)
insight::find_transformation(a) # "box-cox" - correct
#> [1] "box-cox"
insight::get_transformation(a) # also has a correct output
#> $transformation
#> function(x) (x^1.3-1) / 1.3
#> <environment: 0x000001af044791c0>
#>
#> $inverse
#> function(x) exp(log(1 + 1.3 * x) / 1.3)
#> <environment: 0x000001af044791c0>
a <- aov(formula = (mpg ^ -1.3 - 1) / -1.3 ~ hp, data = mtcars)
insight::find_transformation(a)
#> [1] "box-cox"
insight::get_transformation(a)
#> $transformation
#> function(x) (x^-1.3-1) / -1.3
#> <environment: 0x000001af068b0778>
#>
#> $inverse
#> function(x) exp(log(1 + -1.3 * x) / -1.3)
#> <environment: 0x000001af068b0778> Try |
Yes, after the forced update, it also works for me. |
|
Fixes #970