Skip to content

Code for "Interpersonal movement synchrony responds to high- and low-level conversational constraints" (Paxton & Dale, 2017, Frontiers in Psychology).

License

Notifications You must be signed in to change notification settings

a-paxton/dual-conversation-constraints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

High- and Low-Level Constraints on Synchrony during Conversation: Code for Paxton & Dale (2017, Frontiers in Psychology)

This repo contains the code for the analyses presented in our article, "Interpersonal movement synchrony responds to high- and low-level conversational constraints" (Paxton & Dale, 2017, Frontiers in Psychology). The full text of the article is available from Frontiers (http://journal.frontiersin.org/article/10.3389/fpsyg.2017.01135/full) and the project's OSF project (https://osf.io/x9ay6/).

Overview

The repo contains several analysis files, figures, an R markdown file, and a markdown file.

  • dual-conversation-constraints.Rmd: R markdown with all data preparation, analysis, and visualization presented in our manuscript. Note that it includes some visualizations and tables that are mentioned but (for brevity) not included in the manuscript itself.
  • dual-conversation-constraints.md: A markdown file generated by the R markdown of the same name. We recommend that you open this version to view in your browser.
  • ./supplementary-code/required_packages-DCC.r: Downloads packages required to run the R markdown. (This should be run before running anything else.)
  • ./supplementary-code/libraries_and_functions-DCC.r: Loads in necessary libraries and creates new functions for our analyses.
  • ./supplementary-code/continuous_rqa_parameters-DCC.r: Identifies the appropriate parameters for continuous cross-recurrence quantification analysis (CRQA).
  • ./supplementary-code/unify_participant_samples-DCC.r: Merges all individual participant data files produced by PsyGlass into a single file, ./data/prepped_data-DCC.csv.

Related materials

Data for the project (as accepted by Frontiers in Psychology) can be found at our registered OSF project: https://osf.io/4yqz8/

Notes on running and viewing

For best viewing in a browser, we recommend selecting the dual-conversation-constraints.md, rather than the similarly named .Rmd file. (Analyses should be run using the .Rmd file of the same name.)

For those unfamiliar with R markdown, we recommend taking a look at RStudio's introduction to R markdown before attempting to run the .Rmd file. (Be sure to download RStudio first, if you do not already have it installed on your machine.)