Learn R Programming

dbnR (version 0.7.1)

calc_mu: Calculate the mu vector of means of a Gaussian linear network. Front end of a C++ function.

Description

Calculate the mu vector of means of a Gaussian linear network. Front end of a C++ function.

Usage

calc_mu(fit)

Arguments

fit

a bn.fit or dbn.fit object

Value

a named numeric vector of the means of each variable

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")
mu <- calc_mu(fit)
# }

Run the code above in your browser using DataLab