Learn R Programming

dbnR (version 0.7.1)

calc_sigma: Calculate the sigma covariance matrix of a Gaussian linear network. Front end of a C++ function.

Description

Calculate the sigma covariance matrix of a Gaussian linear network. Front end of a C++ function.

Usage

calc_sigma(fit)

Arguments

fit

a bn.fit or dbn.fit object

Value

a numeric covariance matrix of the nodes

Examples

Run this code
# 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