One way analysis of variance
ifr_oneway_anova(data, x, y, ...)
data | a |
---|---|
x | numeric; column in |
y | factor; column in |
... | additional arguments passed to or from other methods |
ifr_oneway_anova
returns an object of class "ifr_oneway_anova"
.
An object of class "ifr_oneway_anova"
is a list containing the
following components:
adjusted r squared value
between groups degress of freedom
within groups degress of freedom
total degress of freedom
f value
group statistics
between groups mean square
within groups mean square
number of observations
p value
r squared value
root mean squared error
between group sum of squares
within group sum of squares
total sum of squares
Kutner, M. H., Nachtsheim, C., Neter, J., & Li, W. (2005). Applied linear statistical models. Boston: McGraw-Hill Irwin.
ifr_oneway_anova(mtcars, mpg, cyl) #> ANOVA #> -------------------------------------------------------------------- #> Sum of #> Squares DF Mean Square F Sig. #> -------------------------------------------------------------------- #> Between Groups 824.785 2 412.392 39.699 0 #> Within Groups 301.263 29 10.388 #> Total 1126.048 31 #> -------------------------------------------------------------------- #> #> Report #> ---------------------------------------- #> Category N Mean Std. Dev. #> ---------------------------------------- #> 4 11 26.664 4.510 #> 6 7 19.743 1.454 #> 8 14 15.100 2.560 #> ---------------------------------------- #> #> Number of obs = 32 R-squared = 0.7325 #> Root MSE = 3.2231 Adj R-squared = 0.714 #> ifr_oneway_anova(hsb, write, prog) #> ANOVA #> ---------------------------------------------------------------------- #> Sum of #> Squares DF Mean Square F Sig. #> ---------------------------------------------------------------------- #> Between Groups 3175.698 2 1587.849 21.275 0 #> Within Groups 14703.177 197 74.635 #> Total 17878.875 199 #> ---------------------------------------------------------------------- #> #> Report #> ----------------------------------------- #> Category N Mean Std. Dev. #> ----------------------------------------- #> 1 45 51.333 9.398 #> 2 105 56.257 7.943 #> 3 50 46.760 9.319 #> ----------------------------------------- #> #> Number of obs = 200 R-squared = 0.1776 #> Root MSE = 8.6392 Adj R-squared = 0.1693 #>