Learn R Programming

CAM (version 1.0)

updateScoreMat: auxiliary file for CAM: Updates the score matrix after having added edge i -> j to the graph.

Description

auxiliary file for CAM. Updates the score matrix after having added edge i -> j to the graph.

Usage

updateScoreMat(scoreMat, X, scoreName, i, j, scoreNodes, Adj, output, numCores, maxNumParents, parsScore, intervMat, intervData)

Arguments

scoreMat
the current score matrix that has to be updated
X
nxp matrix of training inputs (n data points, p dimensions)
scoreName
specifies the model type which is used to compute the score. Default is "SEMGAM" which assumes a generalized additive model class. Other options include "SEMLIN" which fits a linear model.
i
starting point of the edge i->j that has been added
j
end point of the edge i->j that has been added
scoreNodes
vector containing current scores of each node
Adj
adjacency matrix of the graph
output
boolean indicating whether information about the progress is written to the console.
numCores
specifies the number of cores that can be used for computation.
maxNumParents
specifies the maximal number of parents that are allowed in the model.
parsScore
additional parameters can be supported to the score function.
intervMat
the matrix intervMat has the same dimension as X. entry (i,j) == TRUE indicates that in experiment i, variable j has been intervened on.
intervData
boolean that indicates whether we use interventional data.

Value

scoreMat
the updated score matrix.

References

P. B\"uhlmann, J. Peters, J. Ernest: CAM: Causal Additive Models, high-dimensional Order Search and Penalized Regression Annals of Statistics 42:2526-2556, 2014.

See Also

CAM