Derive log-likelihood of conditional log-linear model given parameters.
multiloglikechain(pars, listobservations, permutetab, edgeY, edgeAY, edgeExtra)a set of parameters
a collection of [(2+nc) x m ] matrices comprised of outcomes (first row), treatments (second row), and confounders (from the third row), where nc is the number of confounders.
a matrix comprised of every possible values for outcome in each row.
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.
log-likelihood of conditional log-linear model given parameters, observations, and edge information.