# Clear environment and set working directoryrm(list =ls())setwd("~/Downloads/beliefchange")# Load required librarieslibrary(tidyverse)
Warning: package 'purrr' was built under R version 4.3.3
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.2 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.1 ✔ tibble 3.2.1
✔ lubridate 1.9.2 ✔ tidyr 1.3.0
✔ purrr 1.0.4
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(psych)
Attaching package: 'psych'
The following objects are masked from 'package:ggplot2':
%+%, alpha
library(broom)library(gt)
Warning: package 'gt' was built under R version 4.3.3
library(lubridate)library(effectsize)
Warning: package 'effectsize' was built under R version 4.3.3
Attaching package: 'effectsize'
The following object is masked from 'package:psych':
phi
1. Load and preprocess raw data
raw <-read_csv("Belief Change Rate UPDATED_May 26, 2025_15.16.csv", col_names =FALSE)
Rows: 428 Columns: 107
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (107): X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, X13, X14, X15,...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.