tamat {causalDisco}R Documentation

Make a temporal adjacency matrix

Description

Make a temporal adjacency matrix

Usage

tamat(amat, order)

Arguments

amat

Adjacency matrix. A square matrix of 0 or 1s. A 1 in the (i,j)th entry means that there is an edge from j to i. Row names and column names should be identical and be the names of the variables/nodes. Variable names should be prefixed with their period, e.g. "child_x" for variable "x" at period "child"

order

A character vector with the periods in their order.

Value

A tamat object, which is a matrix with a "order" attribute(a character vector listing the temporal order of the variables in the adjacency matrix).


[Package causalDisco version 0.9.1 Index]