forLoopContentFitBayes function

Regress each node on its parents.#'

Regress each node on its parents.#'

forLoopContentFitBayes( child = NULL, dag = NULL, data.df = NULL, var.types = NULL, grouped.vars = NULL, group.ids = NULL, control = NULL, INLA.marginals = NULL, verbose = NULL, force.method = NULL, data.dists = NULL, mymodes = NULL, error.code = NULL, hessian.accuracy = NULL, mymargs = NULL )

Arguments

  • child: integer of node to be regressed
  • var.types: vector of numeric encoding of distribution types. See get.var.types(data.dists)
  • INLA.marginals: vector of logicals indicating which nodes are to be fitted using INLA
  • mymodes: Empty list of modes for each node
  • error.code: Empty element of error codes for each node
  • hessian.accuracy: Empty element of hessian accuracies for each node
  • mymargs: Empty list of marginals for each node

Returns

list of mlik, modes, marginals, error codes, hessian accuracies and a logical if INLA was used for each node.