getmarginals {abn} | R Documentation |
fitAbn.bayes
.Function for computing marginal posterior densities using C and is called from fit.dag() Only to be called internally.
getmarginals(
res.list,
data.df,
dag.m,
var.types,
max.parents,
mean,
prec,
loggam.shape,
loggam.inv.scale,
max.iters,
epsabs,
verbose,
error.verbose,
trace,
grouped.vars,
group.ids,
epsabs.inner,
max.iters.inner,
finite.step.size,
hessian.params,
max.iters.hessian,
min.pdf,
marginal.node,
marginal.param,
variate.vec,
n.grid,
INLA.marginals,
iter.max,
max.hessian.error,
factor.brent,
maxiters.hessian.brent,
num.intervals.brent
)
res.list |
rest of arguments as for call to C fitabn |
data.df |
a data frame containing the data used for learning the network, binary variables must be declared as factors, and no missing values all allowed in any variable. |
dag.m |
adjacency matrix |
var.types |
distributions in terms of a numeric code |
max.parents |
max number of parents over all nodes in dag (different from other |
mean |
the prior mean for all the Gaussian additive terms for each node. INLA argument |
prec |
the prior precision ( |
loggam.shape |
the shape parameter in the Gamma distribution prior for the precision in a Gaussian node. INLA argument |
loggam.inv.scale |
the inverse scale parameter in the Gamma distribution prior for the precision in a Gaussian node. INLA argument |
max.iters |
total number of iterations allowed when estimating the modes in Laplace approximation. passed to |
epsabs |
absolute error when estimating the modes in Laplace approximation for models with no random effects. Passed to |
verbose |
if |
error.verbose |
logical, additional output in the case of errors occurring in the optimization. Passed to |
trace |
Non-negative integer. If positive, tracing information on the progress of the "L-BFGS-B" optimization is produced. Higher values may produce more tracing information. (There are six levels of tracing. To understand exactly what these do see the source code.). Passed to |
grouped.vars |
result returned from |
group.ids |
result returned from |
epsabs.inner |
absolute error in the maximization step in the (nested) Laplace approximation for each random effect term. Passed to |
max.iters.inner |
total number of iterations in the maximization step in the nested Laplace approximation. Passed to |
finite.step.size |
suggested step length used in finite difference estimation of the derivatives for the (outer) Laplace approximation when estimating modes. Passed to |
hessian.params |
a numeric vector giving parameters for the adaptive algorithm, which determines the optimal stepsize in the finite-difference estimation of the hessian. First entry is the initial guess, second entry absolute error. Passed to |
max.iters.hessian |
integer, maximum number of iterations to use when determining an optimal finite difference approximation (Nelder-Mead). Passed to |
min.pdf |
the value of the posterior density function below which we stop the estimation only used when computing marginals, see details. |
marginal.node |
used in conjunction with |
marginal.param |
used in conjunction with |
variate.vec |
a vector containing the places to evaluate the posterior marginal density, must be supplied if |
n.grid |
recompute density on an equally spaced grid with |
INLA.marginals |
vector - TRUE if INLA used false otherwise |
iter.max |
same as |
max.hessian.error |
if the estimated log marginal likelihood when using an adaptive 5pt finite-difference rule for the Hessian differs by more than |
factor.brent |
if using Brent-Dekker root bracketing method then define the outer most interval end points as the best estimate of |
maxiters.hessian.brent |
maximum number of iterations allowed in the Brent-Dekker method. Passed to |
num.intervals.brent |
the number of initial different bracket segments to try in the Brent-Dekker method. Passed to |
Other Bayes:
buildScoreCache()
,
calc.node.inla.glmm()
,
calc.node.inla.glm()
,
fitAbn()