build_network: Build a network Builds a network from time series data using...

Description Usage Arguments Value

Description

Build a network Builds a network from time series data using vector autoregression

Usage

1
build_network(X, exogen)

Arguments

X

matrix with columns for species and each row is a time-ordered observation

exogen

matrix of exogenous variables with the same number of rows as X

Value

A list with two elements. The first element is the graph, an iGraph object. The second element is a length-3 list containing the adjacency matrix (adj_mat), the p-values for that matrix (adj_mat_p), and the vector autoregression model from vars::VAR (var_mod).


rBatt/robustRisk documentation built on May 26, 2019, 7:45 p.m.