Giter Site home page Giter Site logo

pminasandra / link_updating Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sharajk/link_updating

0.0 0.0 0.0 645 KB

Codes for figures in the manuscript: Link updating strategies influence consensus decisions as a function of the direction of communication

R 100.00%

link_updating's Introduction

Link_updating

This repository contains codes for the simulations and figures obtained in the manuscript: Link updating strategies influence consensus decisions as a function of the direction of communication.

Find the paper here: https://doi.org/10.1098/rsos.230215

The authors of the manuscript are: Sharaj Kunjar*, Ariana Strandburg-Peshkin, Mohit Kumar Jolly, Sumantra Sarkar, Pranav Minasandra, Helge Giese and Nico Gradwohl.

*corresponding author ([email protected])

The packages used in the codes are: ggplot2, dplyr, ggpubr, deSolve, ggridges, svglite and scales

Structure of the repository:

  • Incoming_model.R and Outgoing_model.R contain the functions that generate all the simulations on the mathematical models described in the manuscript.
  • Speed.R contains the function that provides convergence speeds to consensus given the time evolution of the state variables.
  • If_boundary.R contains the function that checks whether the state variable lie inside the imposed boundary conditions.
  • Synth_data folder contains all the generated synthetic data that is used to obtain the figures. The names of the R dataframes correspond to the names of the R scripts that generated them.
  • R Scripts and dataframes matched to the figure labels in the manuscript:
    • Figure 3: Stub_out.RData
    • Figure 4A: LinkStrat_out.RData
    • Figure 4BC: Disagreement_out.RData
    • Figure 5AB: LinkStrat_speed.RData
    • Figure 5C: Inertia_speed.RData
    • Figure 5D: Stub_speed.RData
    • Figure S1: Stub_out_Sup.RData
    • Figure S2: Disagreement_out_Sup.RData
    • Figure S3: Disagreement_speed_Sup.RData
    • Figure S4: Inertia_out_Sup.RData
    • Figure S5A: Inertia_speed_Sup.RData
    • Figure S5B: Stub_speed_Sup.RData

Slight cosmetic changes have been made to the figures obtained for better visualisation. The codes are a work in progress right now for journal submission.

DOI

link_updating's People

Contributors

sharajk avatar pminasandra 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.