Git Product home page Git Product logo

a-paxton / emotion-dynamics Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 2.0 1.34 MB

Code and subset of data for "An exploratory analysis of emotion dynamics between mothers and adolescents during conflict discussions" (Main, Paxton, & Dale, 2016, Emotion).

Home Page: http://psycnet.apa.org/psycinfo/2016-22472-001/

R 100.00%
data-analysis journal-article psychology cognitive-science adolescence conflict human-subjects recurrence-quantification-analysis crqa cross-recurrence

emotion-dynamics's Introduction

Emotion dynamics during conflict discussions

This repo contains the code for the analyses presented in our journal article, "An exploratory analysis of emotion dynamics between mothers and adolescents during conflict discussions" (Main, Paxton, & Dale, 2016, Emotion).

To accompany the code, we also provide de-identified data for two dyads (contained in the data folder). We include the emotion time series for one low-satisfaction dyad and for one high-satisfaction dyad.

Overview

Key variables in the Main_Paxton_Dale-all_analyses.Rmd files are a_target_emotion and p_target_emotion, which specify the categories of emotion states to be used in the plotting and computations. These lists are then used in source files:

  • globals-functions.R: Prepares workspace by importing data, loading necessary libraries, and creating new functions
  • get_rqa_measures.R: Calculates cross-recurrence profiles on the target emotion categories
  • lmer_stats.R: Runs linear mixed-effects models for standardized and unstandardized time series for all dyads' data, by adolescent age, and by dyad satisfaction score
  • plot_drps_age.R: Plots recurrence results by adolescent age
  • plot_drps_satisfaction.R: Plots recurrence results by dyad satisfaction score

Notes on running and viewing

For best viewing in a browser, we recommend selecting the Main_Paxton_Dale-all_analyses.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.)

emotion-dynamics's People

Contributors

a-paxton avatar racdale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.