./data
folder or the full Allbus 2021
codebook and choose another variable that may make sense to be
inserted into a regression.
If you’re having a hard time finding suitable variables, what about one of the dependent variables from the first set of exercises for this session:
mi05
(accepting refugees from war-torn countries)ls01
(satisfaction with general living situation)fr12
(man taking care of the household and
children)get_model_data()
from the
sjPlot
package. You should set the option
type = "pred"
and provide the name of your independent
variable in the terms
option.
data.frame
or a
tibble
.
bind_rows()
function from
the dplyr
package or rbind()
from
base R
.tibble
using as_tibble()
from the
tibble
package.
ggplot
with the regression predictions
(without further customizing anything).
facet_wrap()
here.