powered by
Calculate the sigma covariance matrix of a Gaussian linear network. Front end of a C++ function.
calc_sigma(fit)
a bn.fit or dbn.fit object
a numeric covariance matrix of the nodes
# NOT RUN { dt_train <- dbnR::motor[200:2500] net <- bnlearn::mmhc(dt_train) fit <- bnlearn::bn.fit(net, dt_train, method = "mle") sigma <- calc_sigma(fit) # }
Run the code above in your browser using DataLab