Learn R Programming

causaloptim (version 0.9.1)

create_R_matrix: Create constraint matrix

Description

Matrix and text representation of constraints on observed probabilities

Usage

create_R_matrix(
  graph,
  obsvars,
  respvars,
  p.vals,
  parameters,
  q.list,
  variables
)

Arguments

graph

The graph

obsvars

Vector of observed variable vertices from the graph

respvars

Response function, as returned by create_response_function

p.vals

Observed probability matrix

parameters

Vector of ps names

q.list

List with q matrices, as returned by create_q_matrix

variables

Vector of qs names

Value

A list with the R matrix and the string representation