influencenetworks

Source code for the paper Influence Networks: Bayesian Modelling and Diffusion

https://github.com/samuel-col/influencenetworks

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary
Last synced: 9 months ago · JSON representation ·

Repository

Source code for the paper Influence Networks: Bayesian Modelling and Diffusion

Basic Info
  • Host: GitHub
  • Owner: Samuel-col
  • License: gpl-3.0
  • Language: R
  • Default Branch: main
  • Size: 308 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

Influence Networks

This repository contains the source code for the paper Influence Networks: Bayesian Modelling and Diffusion.

The network used in the Case of study (Section 4) is in datasets/hoaxy/reforma_tributaria_04_11_2022_5pm_mixed_spanish.csv and it is loaded and plotted on reading_data.R. Furthermore, the projection's based model is fitted on jags_implementation.R using Jags. The results are also plotted on the same script. The power of the model to estimate the true parameters of a network (Section 4.3) is tested on simulations_for_influence_model.R.

The Simulations for the diffusion model (Section 5) are performed on the script simulate_from_influence_model.R. However, the cascade simulation which is described on Appendix B is implemented in C++ on cascade.cpp and is connected with R through Rcpp package. Additionally optimize.cpp contains the function that uses the Newton method to find $k^*$ for each simulation scenario.

The script aditional_inference_results.R contains several graphics that depend on the previous scripts.

Please note that the scripts must be excecuted in the order that are presented here, otherwise they wont work. This is because each one generates .RData objects that are used by the following.

Influence network

The following packages are needed: car, cluster, coda, dplyr, fda, fields, igraph, paletteer, R2jags, Rcpp, RcppArmadillo, scales, tseries and xtable.

Owner

  • Login: Samuel-col
  • Kind: user
  • Location: Bogotá, Colombia
  • Company: Universidad Nacional de Colombia

Just a random statistician ejoying linux

Citation (citation.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Sánchez-Gutiérrez"
  given-names: "Samuel Hernando"
  orcid: "https://orcid.org/0000-0001-9979-2842"
title: "Influence Networks"
version: 1.0.0
doi: 
date-released: 2024-08-23
url: "https://github.com/Samuel-col/InfluenceNetworks"

GitHub Events

Total
Last Year