Matrix and text representation of constraints on observed probabilities
create_R_matrix(
graph,
obsvars,
respvars,
p.vals,
parameters,
q.list,
variables
)
The graph
Vector of observed variable vertices from the graph
Response function, as returned by create_response_function
Observed probability matrix
Vector of ps names
List with q matrices, as returned by create_q_matrix
Vector of qs names
A list with the R matrix and the string representation