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
Applying tidy to the results of anova on more than one model yields a data frame where all the column names are off by one (and the last column has name NA):
Analysis of Variance Table
Model 1: mpg ~ wt + qsec + disp
Model 2: mpg ~ wt
Res.Df RSS Df Sum of Sq F Pr(>F)
1 28 195.46
2 30 278.32 -2 -82.859 5.9348 0.007099 **
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
but tidy(a) gives
df sumsq meansq statistic p.value NA
1 28 195.4626 NA NA NA NA
2 30 278.3219 -2 -82.85933 5.934796 0.007099496
It looks like tidy.anova assumes a has five columns, but it has six; the method misses the third column of a (the Df column). Apologies for not putting together a pull request, and thanks for this fantastic package.
The text was updated successfully, but these errors were encountered:
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.
Applying
tidy
to the results ofanova
on more than one model yields a data frame where all the column names are off by one (and the last column has nameNA
):Now
print(a)
givesbut
tidy(a)
givesIt looks like
tidy.anova
assumesa
has five columns, but it has six; the method misses the third column ofa
(theDf
column). Apologies for not putting together a pull request, and thanks for this fantastic package.The text was updated successfully, but these errors were encountered: