toa_diff: Difference in Time of Adoption (TOA) between individuals

Description Usage Arguments Details Value Author(s) Examples

Description

Creates n * n matrix indicating the difference in times of adoption between each pair of nodes

Usage

1
toa_diff(obj, t0 = NULL, labels = NULL)

Arguments

obj

Either an integer vector of size n containing time of adoption of the innovation, or a diffnet object.

t0

Integer scalar. Sets the lower bound of the time window (e.g. 1955).

labels

Character vector of size n. Labels (ids) of the vertices.

Details

Each cell ij of the resulting matrix is calculated as toa(j) - toa(i), so that whenever its positive it means that the j-th individual (alter) adopted the innovation sonner.

Value

An n * n symmetric matrix indicating the difference in times of adoption between each pair of nodes.

Author(s)

George G. Vega Yon, Stephanie R. Dyal, Timothy B. Hayes & Thomas W. Valente

Examples

1
2
3
4
5
6
# Generating a random vector of time
set.seed(123)
times <- sample(2000:2005, 10, TRUE)

# Computing the TOA differences
toa_diff(times)


Search within the netdiffuseR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.