makebugsGroup: Make BUGS model from fitted DAG with grouping

View source: R/simulateabn.R

makebugsGroupR Documentation

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
)

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.

Value

Bugs model returned as stdout.

See Also

simulateAbn gauss_bugsGroup bern_bugsGroup categorical_bugsGroup pois_bugsGroup


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