fit_components {ess}R Documentation

Fit a decomposable graphical model on each component

Description

Structure learning in decomposable graphical models on several components

Usage

fit_components(
  df,
  comp,
  type = "fwd",
  q = 0.5,
  trace = FALSE,
  thres = 5,
  wrap = TRUE
)

Arguments

df

Character data.frame

comp

A list with character vectors. Each element in the list is a component in the graph (using expert knowledge)

type

Character ("fwd", "bwd", "tree" or "tfwd")

q

Penalty term in the stopping criterion where 0 = AIC and 1 = BIC. Anything in between is referred to as qic

trace

Logical indicating whether or not to trace the procedure

thres

A threshold mechanism for choosing between two different ways of calculating the entropy.

wrap

logical specifying if the result of a run with type = "tree" should be converted to a "fwd" object

Value

An adjacency list object

See Also

fit_graph, adj_lst.gengraph, adj_mat.gengraph, walk.fwd, walk.bwd, gengraph


[Package ess version 1.1.2 Index]