meanExpFun: Calculate mean exposure.

Description Usage Arguments Value Author(s)

View source: R/networks.R

Description

Calculates mean exposure for NI and PS units.

Usage

1
meanExpFun(adjMat, statusMat, cols = 1:2, nsim = 1000, bLog = FALSE)

Arguments

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).

cols

Column (i.e. timepoints) to analyse. Only one column will be used.

nsim

Number of simulations.

bLog

Whether to print extra info.

Value

List of observed and simulated mean exposures for NI and PS units: obsNI, obsPS, mexpNI, mexpPS.

Author(s)

Mikhail Churakov


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