Learn R Programming

⚠️There's a newer version (1.22.6) of this package.Take me there.

netdiffuseR (version 1.20.2)

Analysis of Diffusion and Contagion Processes on Networks

Description

Empirical statistical analysis, visualization and simulation of diffusion and contagion processes on networks. The package implements algorithms for calculating network diffusion statistics such as transmission rate, hazard rates, exposure models, network threshold levels, infectiousness (contagion), and susceptibility. The package is inspired by work published in Valente, et al., (2015) ; Valente (1995) , Myers (2000) , Iyengar and others (2011) , Burt (1987) ; among others.

Copy Link

Version

Install

install.packages('netdiffuseR')

Monthly Downloads

384

Version

1.20.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

George Vega Yon

Last Published

March 26th, 2019

Functions in netdiffuseR (1.20.2)

approx_geodesic

Approximate Geodesic Distances
edgelist_to_adjmat

Conversion between adjacency matrix and edgelist
edges_coords

Compute ego/alter edge coordinates considering alter's size and aspect ratio
infection

Susceptibility and Infection
isolated

Find and remove isolated vertices
moran

Computes Moran's I correlation index
netdiffuseR-graphs

Network data formats
plot_diffnet

Plot the diffusion process
plot_diffnet2

Another way of visualizing diffusion
brfarmersDiffNet

diffnet version of the Brazilian Farmers data
rewire_graph

Graph rewiring algorithms
rgraph_ba

Scale-free and Homophilic Random Networks
c.diffnet

Combine diffnet objects
survey_to_diffnet

Convert survey-like data and edgelists to a diffnet object
threshold

Retrive threshold levels from the exposure matrix
bootnet

Network Bootstrapping
diffnet_index

Indexing diffnet objects (on development)
brfarmers

Brazilian Farmers
as_dgCMatrix

Coerce a matrix-like objects to dgCMatrix (sparse matrix)
bass

Bass Model
%*%

Matrix multiplication
diffreg

Diffusion regression model
exposure

Ego exposure
diffusion-data

Diffusion Network Datasets
fakeDynEdgelist

Fake dynamic edgelist
fakesurveyDyn

Fake longitudinal survey data
kfamily

Korean Family Planning
netdiffuseR-options

netdiffuseR default options
grid_distribution

Distribution over a grid
fakeEdgelist

Fake static edgelist
kfamilyDiffNet

diffnet version of the Korean Family Planning data
netdiffuseR

netdiffuseR
fakesurvey

Fake survey data
plot.diffnet

S3 plotting method for diffnet objects.
netmatch

Matching Estimators with Network Data
matrix_compare

Non-zero element-wise comparison between two sparse matrices
medInnovations

Medical Innovation
nvertices

Count the number of vertices/edges/slices in a graph
network

Coercion between diffnet, network and networkDynamic
plot_adopters

Visualize adopters and cumulative adopters
recode

Recodes an edgelist such that ids go from 1 to n
rgraph_er

Erdos-Renyi model
rescale_vertex_igraph

transformGraphBy

Apply a function to a graph considering non-diagonal structural zeros
permute_graph

Permute the values of a matrix
rgraph_ws

Watts-Strogatz model
vertex_covariate_compare

Comparisons at dyadic level
plot_infectsuscep

Plot distribution of infect/suscep
toa_diff

Difference in Time of Adoption (TOA) between individuals
classify_adopters

Classify adopters accordingly to Time of Adoption and Threshold levels.
plot_threshold

Threshold levels through time
classify_graph

Analyze an R object to identify the class of graph (if any)
cumulative_adopt_count

Cummulative count of adopters
dgr

Indegree, outdegree and degree of the vertices
toa_mat

Time of adoption matrix
ego_variance

Computes variance of \(Y\) at ego level
egonet_attrs

Retrieve alter's attributes (network effects)
diffnet-class

Creates a diffnet class object
hazard_rate

Network Hazard Rate
igraph

Coercion between graph classes
diffnet_check_attr_class

Infer whether value is dynamic or static.
read_pajek

Read foreign graph formats
read_ucinet_head

Reads UCINET files
ring_lattice

Ring lattice graph
round_to_seq

Takes a numeric vector and maps it into a finite length sequence
vertex_covariate_dist

Computes covariate distance between connected vertices
diffusionMap

Creates a heatmap based on a graph layout and a vertex attribute
drawColorKey

Draw a color key in the current device
weighted_var

Computes weighted variance
medInnovationsDiffNet

diffnet version of the Medical Innovation data
mentor_matching

Optimal Leader/Mentor Matching
pretty_within

Pretty numbers within a range.
rdiffnet

Random diffnet network
select_egoalter

Calculate the number of adoption changes between ego and alter.
struct_equiv

Structural Equivalence
struct_test

Structure dependence test
summary.diffnet

Summary of diffnet objects
diag_expand

Creates a square matrix suitable for spatial statistics models.
as.array.diffnet

Coerce a diffnet graph into an array
diffnet-arithmetic

diffnet Arithmetic and Logical Operators