Giter Site home page Giter Site logo

blin's Introduction

BLIN

This directory contains code to reproduce the results from "Inferring influence networks from longitudinal bipartite relational data" (2018) by Frank W. Marrs, Benjamin C. Campbell, Bailey K. Fosdick, Skyler J. Cranmer, and Tobias Böhmelt.

Original Code

reproduce_blin_methods.R -- Master file. Run this to reproduce the results from Marrs et. al. (2018).

all_blin_functions.R -- Load supporting functions and libraries. Requires internet connection to download data and existing code.

countries.txt -- Countries and their continents used in analysis.

cv_functions.R -- Cross-validation functions.

MLE_functions.R -- Functions to estimate BLIN model.

misspec_run_cv.R -- Cross-validation script.

sid_functions.R -- Functions to estimate BLIN model for ICEWS data set.

Supporting code and data

To analyze the ICEWS data, the data must be downloaded. In addition, to estimate the bilinear model, we require the functions from "Multilinear tensor regression for longitudinal relational data" (2015) by Peter D. Hoff. To create the influence network plots, the R package arcdiagram is required, which is hosted on github (rather than CRAN). Running the master file will automatically download these files (by sourcing all_blin_functions.R). Lastly, some R packages may be required; all packages are listed in all_blin_functions.R.

blin's People

Contributors

fmarrs3 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.