Learn R Programming

stagedtrees (version 2.3.0)

as_adj_matrix: Convert to an adjacency matrix

Description

Convert to an adjacency matrix

Usage

as_adj_matrix(x, ...)

# S3 method for parentslist as_adj_matrix(x, ...)

# S3 method for ceg as_adj_matrix(x, ignore = x$name_unobserved, endnode = TRUE, ...)

Value

the equivalent adjacency matrix

for as_adj_matrix.ceg: the adj matrix corresponding to the CEG.

Arguments

x

an R object

...

additional parameters

ignore

list of stages to be ignored.

endnode

logical value. If TRUE a final node fil be added.