In the following exercises, you will work on your own ‘research question’ using the ALLBUS 2021. If you have not already done so, you can load the data first using the following code:
library(haven)
allbus_2021_dvII_1 <-
read_spss("./data/allbus_2021/ZA5280_v1-0-0.sav")
## Converting atomic to factors. Please wait...
./data folder or the full Allbus 2021
codebook. Don’t overthink your choices!
If you’re really struggling to find something you like, what about the following variables:
mi05 (accepting refugees from war-torn countries) as DV
and st01 (general trust in people) as IVpa01 (left-right self-placement) as DV and
age as IVfr12 (man taking care of the household and children) as
DV and sex IVeastwest as covariate. If it is part of your predictor
variables (IV), choose another one. Then check visually if the residuals
are normally distributed.
performance and see packages for
this task (and dplyr for the preparatory wrangling part).
performance package.