Supplementary data for the paper Aleva, T. K., Tabone, W., Dodou, D., & De Winter, J. C. F. (2023). Augmented reality for supporting the interaction between pedestrians and automated vehicles: An experimental outdoor study. Frontiers in Robotics and AI. https://doi.org/10.3389/frobt.2024.1324060

* read_and_process.m			MATLAB script that produces all analyses in the paper.
* questionnaire_responses.m		Participant responses to the post-experiment questions. Called by read_and_process.m.

* Data/Button Press			CSV files (30 per participant for 28 participants) with the automated vehicle position and button press state (true/false) per time sample.
					Further information is available in read_and_process.m.
* Data/Questionnaires-Interviews/
  - Intuitiveness-Interviews.xlsx	Excel file with post-trial intuitiveness ratings and post-block interview highlights.
					Abbreviations: BL: Baseline; VF: Virtual fence; PFix: Fixed pedestrian lights; PHud: Pedestrian lights HUD; PoV: Planes on vehicle.
  - Pre-experiment questionnaire.xlsx	Excel file with the participants' responses to the pre-experiment questionnaire (Qualtrics).
  - MISC.xlsx				Excel file with the participants' oral responses to the post-block misery scale.
  - Transcripts.docx 			Word file with the post-block audio-recorded interviews transcribed via Whisper (OpenAI, v20230918, analysis conducted on 16 October 2023).
					Transcripts are available for 16 out of 28 participants.
  - Post-experiment questionnaire.xlsx	Excel file with the participants' responses to the post-experiment questionnaires (Qualtrics).


* nanzscore.m				MATLAB function for z-transforming a matrix that may contain NaNs. Called by read_and_process.m.
* paired_ttests.m			MATLAB script that computes p-values, t-statistics, and df for all possible combinations between AR conditions and appends the results to a matrix. 
					Called by read_and_process.m.
* within_subject_ci.m			MATLAB script that calculates confidence intervals for within-subject data. Called by read_and_process.m. (Based on Morey, 2008).

* AllLogData.mat			MATLAB data file with button press data. Created and called by read_and_process.m.
* Interview_highlights.mat		MATLAB data file with post-block interview highlights per participant. Created from Intuitiveness-Interviews.xlsx.
* ParticipantMeans.xlsx			Excel file with the data per participant underlying the statistical analyses in Table 1 and Figure 8. Output from read_and_process.m.
* Post-hoc comparisons.xlsx		Excel file with the results of post-hoc comparisons (paired-samples t-tests) between 10 pairs of experimental conditions (alpha level = 0.005).

* Unity/				Unity implementation of the automated vehicle and AR interfaces (the relevant scene is 'SampleScene').
* Screenshots AR interfaces/		Screenshots of the AR interfaces as viewed via the head-mounted device.
* Instructions and questionnaires/	Intake questionnaire, pre-experiment instructions, and post-experiment questionnaire.
* Screen recordings/			Representative video recordings of one screen of the head-mounted device with overlayed eye gaze.
					The intervals between trials (i.e., time taken by the participant to respond to the questionnaire and post-block interviews) have been removed from the recordings, for brevity.
					The videos have been reduced to 40% of their original size (1152 x 1088 pixels, instead of 2880 x 2720 pixels), and compressed at a quality of 25%, to make the file size smaller.
* conditions.xlsx			Excel file with the experimental conditions per trial (interface, yielding/non-yielding automated vehicle, attention-attractor circle location).
					

Notes 
The MATLAB scripts were tested using MATLAB R2022b.

Participants 19 and 20 cancelled their scheduled participation in the experiment. This means that there are no data available for Participants 19 and 20. For Participant 3, responses for the Planes on vehicle are unavailable for the post-experiment questionnaire.

The intake questionnaire contains the 9-item ATI scale (Franke et al., 2019) and a color-blindness test (Ishihara, 1917, stimuli as in Ishihara, 1972).

- Franke, T., Attig, C., & Wessel, D. (2019). A personal resource for technology interaction: development and validation of the affinity for technology interaction (ATI) scale. 
International Journal of Human–Computer Interaction, 35, 456–467.
- Morey, R. D. (2008). Confidence intervals from normalized data: A correction to Cousineau (2005). Tutorial in Quantitative Methods for Psychology, 4, 61–64. https://doi.org/10.20982/tqmp.04.2.p061
- Ishihara, S. (1917). Tests for colour-blindness. Tokyo: Kanehara Shuppan Co., Ltd.
- Ishihara, S. (1972). Tests for colour-blindness. 24 plates edition. Tokyo: Kanehara Shuppan Co., Ltd. https://web.archive.org/web/20201208160704/http://www.dfisica.ubi.pt/~hgil/p.v.2/Ishihara/Ishihara.24.Plate.TEST.Book.pdf
