NetworkInference
R implementation to the netinf algorithm. Infers the most likely diffusion network from a set of events
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.8%) to scientific vocabulary
Keywords
diffusion
diffusion-network
netinf-algorithm
network-analysis
r
Last synced: 6 months ago
·
JSON representation
Repository
R implementation to the netinf algorithm. Infers the most likely diffusion network from a set of events
Basic Info
Statistics
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 2
- Releases: 0
Topics
diffusion
diffusion-network
netinf-algorithm
network-analysis
r
Created over 9 years ago
· Last pushed almost 7 years ago
Metadata Files
Readme
License
README.Rmd
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "readme_figures/README-"
)
```
# NetworkInference: Inferring Latent Diffusion Networks
 


## About
This package provides an R implementation of the netinf algorithm
created by Gomez-Rodriguez, Leskovec, and Krause (see
[here](http://snap.stanford.edu/netinf/) for more information and the original
C++ implementation). Given a set of events that spread between a set of nodes
the algorithm infers the most likely stable diffusion network that is underlying
the diffusion process.
## Installation
The package can be installed from [CRAN](https://CRAN.R-project.org/):
```{r, eval=FALSE}
install.packages("NetworkInference")
```
The latest development version can be installed from
[github](https://github.com/desmarais-lab/NetworkInference):
```{r, eval=FALSE}
#install.packages(devtools)
devtools::install_github('desmarais-lab/NetworkInference')
```
## Quick start guide
To get started, get your data into the `cascades` format required by the `netinf`
function:
```{r, results='hide', message=FALSE}
library(NetworkInference)
# Simulate random cascade data
df <- simulate_rnd_cascades(50, n_node = 20)
# Cast data into `cascades` object
## From long format
cascades <- as_cascade_long(df)
## From wide format
df_matrix <- as.matrix(cascades) ### Create example matrix
cascades <- as_cascade_wide(df_matrix)
```
Then fit the model:
```{r}
result <- netinf(cascades, quiet = TRUE, p_value_cutoff = 0.05)
```
```{r, eval=FALSE}
head(result)
```
```{r, results="asis", echo=FALSE}
pander::pandoc.table(head(result))
```
Owner
- Name: Bruce Desmarais's Lab
- Login: desmarais-lab
- Kind: organization
- Email: bdesmarais@psu.edu
- Website: https://desmarais-lab.github.io
- Repositories: 20
- Profile: https://github.com/desmarais-lab
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Fridolin Linder | f****r@g****m | 451 |
| Bruce Desmarais | b****s@g****m | 3 |
| Fridolin Linder | f****r@n****u | 3 |
Committer Domains (Top 20 + Academic)
nyu.edu: 1
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 39
- Total pull requests: 10
- Average time to close issues: 24 days
- Average time to close pull requests: about 16 hours
- Total issue authors: 3
- Total pull request authors: 2
- Average comments per issue: 0.9
- Average comments per pull request: 0.1
- Merged pull requests: 8
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- flinder (37)
- leifeld (1)
- DGaffney (1)
Pull Request Authors
- flinder (9)
- testaccount57 (1)
Top Labels
Issue Labels
enhancement (19)
bug (9)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 320 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 9
- Total maintainers: 1
cran.r-project.org: NetworkInference
Inferring Latent Diffusion Networks
- Documentation: http://cran.r-project.org/web/packages/NetworkInference/NetworkInference.pdf
- License: MIT + file LICENSE
-
Latest release: 1.2.4
published almost 7 years ago
Rankings
Stargazers count: 11.6%
Forks count: 21.9%
Dependent packages count: 29.8%
Average: 30.2%
Dependent repos count: 35.5%
Downloads: 52.1%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- Rcpp >= 0.12.5 imports
- assertthat * imports
- checkmate * imports
- ggplot2 * imports
- ggrepel * imports
- stats * imports
- dplyr * suggests
- igraph * suggests
- knitr * suggests
- pander * suggests
- rmarkdown * suggests
- testthat * suggests
- utils * suggests