powered by
Calculate the mu vector of means of a Gaussian linear network. Front end of a C++ function.
calc_mu(fit)
a bn.fit or dbn.fit object
a named numeric vector of the means of each variable
# 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