DOI: 10.5281/zenodo.15120255
title: Anoted dataset from the paper: Production and perception of volitional laughter across social contexts

description: This repository contains all the data and scripts used in the paper titled Production and perception of volitional laughter across social contexts.



The laughter_and_context.qmd file

This is a Quarto document (compiled into the laughter_and_context.html file) that contains the complete analysis for this study.



Laughter_audio_files

This folder contains all the audio files used in the study. The files are named as follows:

ParticipantID_Sex_Context_RateofValenceoftheContext.wav

Additionally, you will find 75 Hz high-pass filtered versions of the audio files.



Data

This folder contains all the data files used for analysis.

Analyze

This folder includes the results from various models computed for the study. You can run these models yourself, but processing time will depend on your computer’s capabilities.





Best_models_rec_hu.rds – Results of the GLMER model selection testing the unbiased hit rate (Hu) of listeners across laughter contexts.




Best_models_offset.rds – Results of the GLMER model selection testing listener recognition accuracy across laughter contexts.




Best_models_offset_final.rds – Final computation of the best GLMER model for listener recognition accuracy across laughter contexts.




Best_rf.rds – Hyperparameter tuning for the random forest models testing laughter context classification based on acoustic variables.




DFA_all_results.rds – 1,000 iterations of the Discriminant Function Analysis testing laughter context classification based on acoustic variables.




RF_all_results.rds – 1,000 iterations of the random forest model testing laughter context classification based on acoustic variables.




models_acc_listeners.rds – Multiple individual linear mixed models testing the influence of acoustic variables on the accuracy of laughter context recognition.




models_accuracy_acoustics.rds – Multiple individual linear mixed models testing the influence of acoustic variables on the accuracy of laughter context recognition.




models_perceive_context_list.rds – Multiple individual linear mixed models testing the influence of acoustic variables on listeners' predictions of laughter context.





Listeners

This folder contains data from the listeners’ recognition tasks.





Brut – Raw data directly downloaded from Labvanced and Prolific.




Formatted – Cleaned versions of the raw data.



Files:





context_rating_task_brut_rec_all.csv – Ratings of laughter context based on vignette observation (includes all participants).




context_rating_task_all_rec_all.csv – Ratings of laughter context based on vignette observation (excluding participants who did not meet the criteria).




discrimination_by_laugh_rec_all.csv – Average context recognition scores per laugh file.




Laugh_discrimination_task_all_rec_all.csv – Recognition scores of laughter context for each participant (excluding participants who did not meet the criteria).




Laugh_discrimination_task_brut_rec_all.csv – Recognition scores of laughter context for each participant (includes all participants).




List_idv_to_rmv_rec_all.csv – List of participant IDs that did not meet the criteria.




metadata_listener_vignette_rmv_rec_all.csv – Metadata of participants included in the study.





Speaker





Participant_form.csv – Metadata of the speakers.




Tab_measures_with_cv.csv – Acoustic measurements of each recorded laugh.




Tab_scale_ac_log_measure.csv – Log-transformed and normalized acoustic measurements (for Hz) of each recorded laugh.





R_scripts

This folder contains all the R scripts used for analysis.





1_Wav Extraction.R – Script to extract WAV files based on annotations from the raw files.




2_Acoustic Measurement.R – Script detailing all acoustic measurements taken from the recorded laughs.




3_Function_for_processing_data_from_labdvanced_results.R – Script for cleaning data from Labvanced and Prolific.




4_Aggregate_lme_results_function.R – Script for aggregating multiple independent GLMER models across acoustic variables.




5_function_for_plots.R – Script for visualizing the data.





Visualization





Spectro – Spectrograms of all analyzed laughs.




Spectro_burst – Burst detection results for all analyzed laughs.