-
Notifications
You must be signed in to change notification settings - Fork 303
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
tidy() gives a warning when used with anova() #487
Comments
Hmmm, will look into this. |
I get a similar issue when using one of the updater functions that has a column for AIC (but maybe a different issue) # from ?drop1
require(graphics); require(utils); require(broom); require(dplyr)
#> Loading required package: broom
#> Loading required package: dplyr
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
## following example(swiss)
lm1 <- lm(Fertility ~ ., data = swiss)
add1(lm1, ~ I(Education^2) + .^2) %>% tidy()
#> Warning in tidy.anova(.): The following column names in ANOVA output were
#> not recognized or transformed: AIC
#> # A tibble: 12 x 5
#> term df sumsq rss AIC
#> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 <none> NA NA 2105. 191.
#> 2 I(Education^2) 1 11.8 2093. 192.
#> 3 Agriculture:Examination 1 10.7 2094. 192.
#> 4 Agriculture:Education 1 1.83 2103. 193.
#> 5 Agriculture:Catholic 1 75.0 2030. 191.
#> 6 Agriculture:Infant.Mortality 1 4.44 2101. 193.
#> 7 Examination:Education 1 48.7 2056. 192.
#> 8 Examination:Catholic 1 40.8 2064. 192.
#> 9 Examination:Infant.Mortality 1 65.9 2039. 191.
#> 10 Education:Catholic 1 278. 1827. 186.
#> 11 Education:Infant.Mortality 1 93.0 2012. 191.
#> 12 Catholic:Infant.Mortality 1 2.36 2103. 193.
drop1(lm1, test = "F") %>% tidy()
#> Warning in tidy.anova(.): The following column names in ANOVA output were
#> not recognized or transformed: AIC
#> # A tibble: 6 x 7
#> term df sumsq rss AIC statistic p.value
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 <none> NA NA 2105. 191. NA NA
#> 2 Agriculture 1 308. 2413. 195. 5.99 0.0187
#> 3 Examination 1 53.0 2158. 190. 1.03 0.315
#> 4 Education 1 1163. 3268. 209. 22.6 0.0000243
#> 5 Catholic 1 448. 2553. 198. 8.72 0.00519
#> 6 Infant.Mortality 1 409. 2514. 197. 7.96 0.00734 Created on 2019-01-07 by the reprex package (v0.2.1) |
I claim this one |
* fixing issue tidymodels#487: ANOVA warning * fixe tidymodels#558: lmRob acceptance of conf.int * removing unnecessary broom::
I know that this is supposed to be fixed, but I actually get the exact same issue with broom version 0.5.5. Any idea what could be happening? |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
After the latest broom update (0.5.0), the tidy function gives the warning: "Warning: Unknown or uninitialised column: 'term'." when used on the anova function. That was not the case before the update.
The text was updated successfully, but these errors were encountered: