Work

R analysis code for “Executive Function and Affective State Recognition Show Distinct Associations with Empathic Choice Across Socioeconomic Contexts”

Year: 2026
Type: software
Abstract: This software item contains the frozen R analysis script used to reproduce the participant-level statistical analyses reported in the study “Executive Function and Affective State Recognition Show Distinct Associations with Empathic Choice Across Socioeconomic Contexts.”The script implements the analyses reported in the manuscript and Supplementary Information, including descriptive and between-group analyses, Pearson correlations, the primary multivariable model of empathic choice with HC3 robust standard errors, group-specific executive-function slopes, education-adjusted robustness analyses, grouped-binomial and quasibinomial sensitivity models, subjective-evaluation analyses, IRI-subscale sensitivity analyses, functional-form and leave-one-out diagnostics, model-comparison analyses, and the exploratory cross-sectional statistical decomposition with 10,000 participant-level bootstrap resamples.The script is designed for use with the corresponding de-identified processed participant-level analysis dataset deposited separately in Figshare. It does not contain participant identifiers, raw individual free-text responses, or local computer paths. The reference software environment is R 4.4.1. Required R packages are readxl, sandwich, lmtest, and emmeans.The cross-sectional decomposition implemented in the script is intended strictly as a statistical decomposition of covariance and is not interpreted as temporal or causal mediation.
Source: Figshare
Language: English
Open Access status: green
OpenAlex ID: W7204258746
Cites:
Cited by:
Related to: 10