This is an auxiliary function to print out the factors for conditional log-linear model given edge information.
multimainfunction(pars, newcombined, edgeY, edgeAY, edgeExtra)a set of parameters
a [(2+nc) x m ] matrix comprised of outcomes (first row), treatments (second row), and confounders (from the third row), where nc is the number of confounders.
a matrix of which each row indicates a pair of index for adjacent outcomes.
a matrix of which each row indicates a index for treatment (first column) and for outcome (second column) on which the treatment has a direct effect.
a list of edges of which a list of matrix specifying additional directed edges (from confounders or treatment to the outcomes) information.
a sum of factors.