Publications by Sebastien Parker

Tutorial 3 Exercise Solutions

01.02.2025

European Social Survey (ESS) Data Visualization Practice Exercises Initial set-up library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 ...

1577 sym R (5009 sym/8 pcs) 4 img

Tutorial 2 Exercise Solutions

27.01.2025

# Load required packages packages <- c("tidyverse", "srvyr", "srvyrexploR", "broom", "gt") # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) install.packages(new_packages) # Load the packages lapply(packages, library, character.only = TRUE) ## [...

4175 sym 10 tbl

Third Tutorial

23.01.2025

Part 1: Foundations of Data Visualization Setting Up Our Environment # List of packages packages <- c("tidyverse", "datasauRus", "fst", "ggridges", "patchwork") # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) install.packages(new_packages) # ...

15867 sym Python (39684 sym/115 pcs) 32 img

Week 2. Session 2.

21.01.2025

Setting up environment # List of packages packages <- c("tidyverse", "srvyr", "srvyrexploR", "broom","gt", "modelsummary", "gapminder") # add any you need here # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) install.packages(new_packages) # Lo...

19142 sym Python (27210 sym/55 pcs) 2 img 6 tbl

2.1. Practice Exercise Solutions

20.01.2025

Practice Exercises (to leverage for weekly diary!) Here are 5 exercises to help you practice what we covered today. These build on each other and follow the same order as our tutorial. Exercise 1: Basic Objects Practice creating and printing objects: Create an object called ‘x’ and store the number 42 in it Create an object called ‘y’ and...

1636 sym Python (2948 sym/18 pcs)

Week 2. Session 2.

16.01.2025

Setting up environment # List of packages packages <- c("tidyverse", "srvyr", "srvyrexploR", "broom","gt", "modelsummary") # add any you need here # Install packages if they aren't installed already new_packages <- packages[!(packages %in% installed.packages()[,"Package"])] if(length(new_packages)) install.packages(new_packages) # Load the packag...

19056 sym Python (25389 sym/54 pcs) 2 img 6 tbl

Week 2. Session 1.

14.01.2025

Setting Up Our Environment Installing and Loading R Packages In R, we distinguish between installing and loading packages: Installing is like downloading an app (which only needs to be done once) For today’s session, we’ll focus on two essential packages: # Only run these once to install the packages install.packages("tidyverse") # Core data ...

14251 sym

Replication Example 3

07.08.2024

In this third example, we will replicate: “Intergenerational Social Mobility Among the Children of Immigrants in Western Europe: Between Socioeconomic Assimilation and Disadvantage” by Mauricio Bucca & Lucas Drouhot. Full replication files here: https://osf.io/4tjfq/?view_only=2894f243dc524ba8b129153e150715e3 Note: their files implement the pac...

6609 sym R (28191 sym/62 pcs) 2 img 1 tbl

Replication Example 1

07.08.2024

Introduction This tutorial walks through replicating key parts of Barum Park’s paper “Was There a Culture War? Partisan Polarization and Secular Trends in U.S. Public Opinion” using GSS data from 1972-2022. Note 1: We are using the full current GSS dataset until 2022. The paper is based on data until 2012. So we are replicating as well as upd...

3713 sym R (21189 sym/29 pcs) 5 img 1 tbl

Replication Example 2

07.08.2024

This is a direct replication of the files provided by: Lea Elsässer, Svenja Hense, Armin Schäfer on their GitHub page. In this file, we reproduce the analyses for the article Not just money: Unequal responsiveness in egalitarian democracies published with the Journal or European Public Policy. The article is based on an original dataset—“Resp...

7534 sym 11 img 10 tbl