Load useful packages
## Loading required package: carData
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.4 ✔ readr 2.1.4
## ✔ forcats 1.0.0 ✔ stringr 1.5.0
## ✔ ggplot2 3.4.4 ✔ tibble 3.2.1
## ✔ lubridate 1.9.2 ✔ tidyr 1.3.0
## ✔ purrr 1.0.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ✖ dplyr::recode() masks car::recode()
## ✖ purrr::some() masks car::some()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
import dataset file and exclude participants who did not show
## New names:
## • `anything_else` -> `anything_else...57`
## • `anything_else` -> `anything_else...62`
## • `anything_else` -> `anything_else...67`
## • `anything_else` -> `anything_else...72`
## # A tibble: 6 × 82
## id condition attendance school year first_dancer yrbefore_dance academic
## <chr> <lgl> <chr> <chr> <chr> <chr> <dbl> <chr>
## 1 P15 NA yes RBS year 11 yes 3 yes, hi…
## 2 P16 NA yes RBS year 11 yes 9 yes, hi…
## 3 P17 NA yes RBS year 11 yes 10 yes, hi…
## 4 P18 NA yes RBS year 11 yes 10 yes, hi…
## 5 P19 NA yes RBS year 11 yes 3 no
## 6 P20 NA yes RBS year 11 no 9 yes, hi…
## # ℹ 74 more variables: free_perweek <chr>, home_country <chr>,
## # live_family <chr>, who_live <chr>, away_family <chr>, family_yr <chr>,
## # family_week <chr>, parent_tger <chr>, same_parent <chr>, siblings <chr>,
## # how_many_siblings <dbl>, native_speaker <chr>, eng_level <chr>,
## # hc_homesick <dbl>, hc_miss <dbl>, hc_lonely <dbl>, hc_excluded <dbl>,
## # hc_understand <dbl>, ss_inneed <dbl>, ss_share <dbl>, ss_support <dbl>,
## # ss_talk <dbl>, ss_counton <dbl>, ss_decision <dbl>, ss_prob_fri <dbl>, …
social support scale result