defines_mod: Check if the standard imset for a graph defines the model

defines_modR Documentation

Check if the standard imset for a graph defines the model

Description

Check if the standard imset for a graph defines the model

Usage

defines_mod(
  graph,
  u,
  timeout = 60L,
  trace = FALSE,
  sparse = FALSE,
  rmv_edges = FALSE,
  stop_if_fail = TRUE
)

Arguments

graph

an ADMG in the form of a mixedgraph object

u

optionally, an imset to test the constraints from the graph on (otherwise the 'standard' imset is used)

timeout

an integer giving the maximum run time for each linear program in seconds

trace

logical: should details be given of tests?

sparse

logical: use sparse matrix?

rmv_edges

logical: only use missing edges in the graph in the constraint matrix?

stop_if_fail

logical: should procedure stop if one independence is not represeneted?

Details

The timeout argument requires version 5.6.13.4.9000 of lpSolve to be installed. If the function returns NA then no independence was found to be not in the model but at least one of the linear programs timed out.


rje42/imset documentation built on March 20, 2023, 9:55 a.m.