As in the slides, we will, again, use the data from the **German General Social Survey - ALLBUS 2021*. If they are not (still/yet) in your workspace, you first need to load them.
library(haven)
allbus_2021_cda_1 <- read_spss("./data/allbus_2021/ZA5280_v1-0-0.sav")
## Converting atomic to factors. Please wait...
eastwest groups in the data for the
variable pa01. You may get an error message complaining
that the variable is not numeric.
base R function named after
this test. For converting the variable to numeric you have to use the
function as.numeric().
base R function to run an ANOVA to test the
relationship between the left-right self-placement and age groups.
summary() function.
R with +.
TukeyHSD() function for this purpose.