calc.node.inla.glm: Fit a given regression using INLA

View source: R/calc_node_inla_glm.R

calc.node.inla.glmR Documentation

Fit a given regression using INLA

Description

Internal wrapper to INLA and are called from fitAbn.bayes and buildScoreCache.bayes.

Usage

calc.node.inla.glm(
  child.loc,
  dag.m.loc,
  data.df.loc,
  data.dists.loc,
  ntrials.loc,
  exposure.loc,
  compute.fixed.loc,
  mean.intercept.loc,
  prec.intercept.loc,
  mean.loc,
  prec.loc,
  loggam.shape.loc,
  loggam.inv.scale.loc,
  verbose.loc
)

Arguments

child.loc

index of current child node.

dag.m.loc

dag as matrix.

data.df.loc

data df,

data.dists.loc

list of distributions.

ntrials.loc

rep(1,dim(data.df)[1]).

exposure.loc

rep(1,dim(data.df)[1]).

compute.fixed.loc

TRUE.

mean.intercept.loc

the prior mean for all the Gaussian additive terms for each node. INLA argument control.fixed=list(mean.intercept=...) and control.fixed=list(mean=...).

prec.intercept.loc

the prior precision for all the Gaussian additive term for each node. INLA argument control.fixed=list(prec.intercept=...) and control.fixed=list(prec=...).

mean.loc

the prior mean for all the Gaussian additive terms for each node. INLA argument control.fixed=list(mean.intercept=...) and control.fixed=list(mean=...). Same as mean.intercept.loc.

prec.loc

the prior precision for all the Gaussian additive term for each node. INLA argument control.fixed=list(prec.intercept=...) and control.fixed=list(prec=...). Same as prec.intercept.loc.

loggam.shape.loc

the shape parameter in the Gamma distribution prior for the precision in a Gaussian node. INLA argument control.family=list(hyper = list(prec = list(prior="loggamma",param=c(loggam.shape, loggam.inv.scale)))).

loggam.inv.scale.loc

the inverse scale parameter in the Gamma distribution prior for the precision in a Gaussian node. INLA argument control.family=list(hyper = list(prec = list(prior="loggamma",param=c(loggam.shape, loggam.inv.scale)))).

verbose.loc

FALSE to not print additional output.

Value

If INLA failed, FALSE or an error is returned. Otherwise, the direct output from INLA is returned.

See Also

Other Bayes: buildScoreCache(), calc.node.inla.glmm(), fitAbn(), getmarginals()


abn documentation built on Nov. 3, 2023, 5:08 p.m.