Learn R Programming

abn (version 3.1.1)

makebugsGroup: Make BUGS model from fitted DAG with grouping

Description

Make BUGS model from fitted DAG with grouping

Usage

makebugsGroup(
  dag,
  data.dists,
  stderrors,
  group.var,
  mu,
  betas,
  sigma,
  sigma_alpha
)

Value

Bugs model returned as stdout.

Arguments

dag

named adjacency matrix representing the DAG. Names correspond to node names.

data.dists

list of node distributions.

stderrors

a list named by the node names containing for each element a matrix with the nodes' standard errors

group.var

only applicable for mixed models and gives the column name in data.df of the grouping variable (which must be a factor denoting group membership).

mu

Standard deviation of fixed effects.

betas

Coefficients/slopes of fixed effects .

sigma

variance of random effects.

sigma_alpha

variance-covariance matrix corresponding to covariances output from mblogit.

See Also

simulateAbn gauss_bugsGroup bern_bugsGroup categorical_bugsGroup pois_bugsGroup