multimainfunction: Extracting factors for conditional log-linear model

Description Usage Arguments Value

Description

This is an auxiliary function to print out the factors for conditional log-linear model given edge information.

Usage

1
multimainfunction(pars, newcombined, edgeY, edgeAY, edgeExtra)

Arguments

pars

a set of parameters

newcombined

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.

edgeY

a matrix of which each row indicates a pair of index for adjacent outcomes.

edgeAY

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.

edgeExtra

a list of edges of which a list of matrix specifying additional directed edges (from confounders or treatment to the outcomes) information.

Value

a sum of factors.


youjin1207/netchain documentation built on May 7, 2019, 9:32 a.m.