##################################################
## Using Gaussian Data
##################################################
## Load predefined data
data(gmInt)
## Define the score object
score <- new("GaussL0penIntScore", gmInt$x, gmInt$targets, gmInt$target.index)
## Score of the true underlying DAG
score$global.score(as(gmInt$g, "GaussParDAG"))
## Score of the DAG that has only one edge from 1 to 2
A <- matrix(0, ncol(gmInt$x), ncol(gmInt$x))
A[1, 2] <- 1
score$global.score(as(A, "GaussParDAG"))
## (Note: this is lower than the score of the true DAG.)
Run the code above in your browser using DataLab