calculateMeanExposure: Calculate mean exposure.

Description Usage Arguments Details Value Author(s)

View source: R/networks.R

Description

Calculates mean exposure from incoming links for a set of node.

Usage

1
2
calculateMeanExposure(selNodes, adjMat, statusMat, column = 1,
  bLog = FALSE)

Arguments

selNodes

Indices of the specified nodes.

adjMat

Adjacency matrix for the network.

statusMat

A matrix with statuses (NA, 0, any positive integer) of each unit. Rownames indicate location names, colnames indicate names of timepoints (e.g. years).

column

Column to analyze.

bLog

Whether to print infective links.

Details

Implemented via matrix multiplications.

Value

A vector with two elements: number of incoming links, number of incoming links from infectious units (status > 0).

Author(s)

Mikhail Churakov


mc30/disnap documentation built on Jan. 18, 2020, 3:44 a.m.