Check if all nodes in the network are connected (identical to function in MBNMAtime)

check.network(g, reference = 1)

Arguments

g

An network plot of class("igraph")

reference

A numeric value indicating which treatment code to use as the reference treatment for testing that all other treatments connect to it