Checks and converts the partial matrix and graph given for a HR graphical model.
check_partial_matrix_and_graph(M, graph = NULL, graph_type = "general")
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.
A partial matrix or a vector of entries corresponding to the edges of graph
A graph object or NULL
if the graph structure is implied by the NA
structure of M
Passed to check_graph()
.
Other input validation functions:
checkGamma()
,
check_graph()
,
ensure_matrix_symmetry()