Creates a summary object that produces detailed output when printed, including the full ANOVA table, descriptive statistics, and Levene's test.
Usage
# S3 method for class 'factorial_anova'
summary(
object,
between_subjects = TRUE,
descriptives = TRUE,
levene_test = TRUE,
digits = 3,
...
)Arguments
- object
A
factorial_anovaresult object.- between_subjects
Logical. Show the ANOVA table? (Default: TRUE)
- descriptives
Logical. Show descriptive statistics? (Default: TRUE)
- levene_test
Logical. Show Levene's test? (Default: TRUE)
- digits
Number of decimal places for formatting (Default: 3).
- ...
Additional arguments (not used).
See also
factorial_anova for the main analysis function.
Examples
result <- factorial_anova(survey_data, dv = life_satisfaction, between = c(gender, education))
summary(result)
#> Factorial ANOVA (2-Way ANOVA) Results
#> -------------------------------------
#>
#> - Dependent variable: life_satisfaction
#> - Factors: gender x education
#> - Type III Sum of Squares: Type 3
#> - N (complete cases): 2421
#> - Missing: 79
#>
#> Tests of Between-Subjects Effects
#> -------------------------------------------------------------------------------
#> Source Type III SS df Mean Square F Sig. Partial Eta Sq
#> Corrected Model 251.598 7 35.943 29.243 <.001 0.078
#> Intercept 30768.008 1 30768.008 25032.862 <.001 0.912
#> gender 2.511 1 2.511 2.043 0.153 0.001
#> education 244.518 3 81.506 66.313 <.001 0.076
#> gender * education 2.606 3 0.869 0.707 0.548 0.001
#> Error 2965.830 2413 1.229
#> Total 35088.000 2421
#> Corrected Total 3217.428 2420
#>
#> ***
#> ***
#>
#> ***
#>
#>
#>
#>
#> -------------------------------------------------------------------------------
#> R Squared = 0.078 (Adjusted R Squared = 0.076)
#>
#> Descriptive Statistics
#> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#> gender education Mean Std. Deviation N
#> Male Basic Secondary 3.20 1.235 382
#> Male Intermediate Secondary 3.65 1.143 281
#> Male Academic Secondary 3.86 1.009 305
#> Male University 3.96 1.043 181
#> Female Basic Secondary 3.21 1.252 427
#> Female Intermediate Secondary 3.74 1.086 337
#> Female Academic Secondary 3.85 0.989 302
#> Female University 4.13 0.869 206
#> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#>
#> Levene's Test of Equality of Error Variances
#> F(7, 2413) = 13.816, p = <.001
#>
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05
summary(result, levene_test = FALSE)
#> Factorial ANOVA (2-Way ANOVA) Results
#> -------------------------------------
#>
#> - Dependent variable: life_satisfaction
#> - Factors: gender x education
#> - Type III Sum of Squares: Type 3
#> - N (complete cases): 2421
#> - Missing: 79
#>
#> Tests of Between-Subjects Effects
#> -------------------------------------------------------------------------------
#> Source Type III SS df Mean Square F Sig. Partial Eta Sq
#> Corrected Model 251.598 7 35.943 29.243 <.001 0.078
#> Intercept 30768.008 1 30768.008 25032.862 <.001 0.912
#> gender 2.511 1 2.511 2.043 0.153 0.001
#> education 244.518 3 81.506 66.313 <.001 0.076
#> gender * education 2.606 3 0.869 0.707 0.548 0.001
#> Error 2965.830 2413 1.229
#> Total 35088.000 2421
#> Corrected Total 3217.428 2420
#>
#> ***
#> ***
#>
#> ***
#>
#>
#>
#>
#> -------------------------------------------------------------------------------
#> R Squared = 0.078 (Adjusted R Squared = 0.076)
#>
#> Descriptive Statistics
#> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#> gender education Mean Std. Deviation N
#> Male Basic Secondary 3.20 1.235 382
#> Male Intermediate Secondary 3.65 1.143 281
#> Male Academic Secondary 3.86 1.009 305
#> Male University 3.96 1.043 181
#> Female Basic Secondary 3.21 1.252 427
#> Female Intermediate Secondary 3.74 1.086 337
#> Female Academic Secondary 3.85 0.989 302
#> Female University 4.13 0.869 206
#> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#>
#> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05
