check_partial_matrix_and_graph: Check input graph and partial matrix

View source: R/input_checks.R

check_partial_matrix_and_graphR Documentation

Check input graph and partial matrix

Description

Checks and converts the partial matrix and graph given for a HR graphical model.

Usage

check_partial_matrix_and_graph(M, graph = NULL, graph_type = "general")

Arguments

M

A partial matrix or a vector of entries corresponding to the edges of graph

graph

A graph object or NULL if the graph structure is implied by the NA structure of M

graph_type

Passed to check_graph().

Value

A list consisting of

matrix

The matrix given as input or implied by the input

graph

The graph given as input or implied by the input

Throws an error if the input is not valid.

See Also

Other input validation functions: checkGamma(), check_graph(), ensure_matrix_symmetry()


graphicalExtremes documentation built on Nov. 14, 2023, 1:07 a.m.