Learn R Programming

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

netdiffuseR (version 1.17.0)

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

662

Version

1.17.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 11th, 2016

Functions in netdiffuseR (1.17.0)

diffnet_check_attr_class

Infer whether value is dynamic or static.
brfarmers

Brazilian Farmers
brfarmersDiffNet

diffnet version of the Brazilian Farmers data
diag_expand

Creates a square matrix suitable for spatial statistics models.
classify_adopters

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

Cummulative count of adopters
as.array.diffnet

Coerce a diffnet graph into an array
c.diffnet

Combine diffnet objects
classify_graph

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

Indegree, outdegree and degree of the vertices
diffnet_to_igraph

Convertion between graph classes
diffnet_index

Indexing diffnet objects (on development)
drawColorKey

Draw a color key in the current device
edgelist_to_adjmat

Conversion between adjacency matrix and edgelist
diffnet-arithmetic

diffnet Arithmetic and Logical Operators
%*%

Matrix multiplication
edges_coords

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

Computes variance of $Y$ at ego level
diffusion-data

Diffusion Network Datasets
diffusionMap

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

Network Hazard Rate
grid_distribution

Distribution over a grid
exposure

Ego exposure
egonet_attrs

Retrieve alter's attributes (network effects)
fakeDynEdgelist

Fake dynamic edgelist
fakeEdgelist

Fake static edgelist
infection

Susceptibility and Infection
isolated

Find and remove isolated vertices
fakesurvey

Fake survey data
fakesurveyDyn

Fake longitudinal survey data
kfamily

Korean Family Planning
struct_test

Structure dependence test
kfamilyDiffNet

diffnet version of the Korean Family Planning data
weighted_var

Computes weighted variance
permute_graph

Permute the values of a matrix
survey_to_diffnet

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

Visualize adopters and cumulative adopters
read_pajek

Read foreign graph formats
read_ucinet_head

Reads UCINET files
select_egoalter

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

Medical Innovation
struct_equiv

Structural Equivalence
medInnovationsDiffNet

diffnet version of the Medical Innovation data
plot_infectsuscep

Plot distribution of infect/suscep
plot_threshold

Threshold levels through time
ring_lattice

Ring lattice graph
round_to_seq

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

Comparisons at dyadic level
vertex_covariate_dist

Computes covariate distance between connected vertices
netdiffuseR-graphs

Network data formats
netdiffuseR-options

netdiffuseR default options
rescale_vertex_igraph

threshold

Retrive threshold levels from the exposure matrix
recode

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

Difference in Time of Adoption (TOA) between individuals
plot_diffnet

Plot the diffusion process
rewire_graph

Graph rewiring algorithms
plot_diffnet2

Another way of visualizing diffusion
rgraph_ba

Scale-free and Homophilic Random Networks
netdiffuseR

netdiffuseR
pretty_within

Pretty numbers within a range.
nvertices

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

Random diffnet network
rgraph_ws

Watts-Strogatz model
rgraph_er

Erdos-Renyi model
toa_mat

Time of adoption matrix
transformGraphBy

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