gengraph: A generic and extendable structure for decomposable graphical...

Description Usage Arguments Value See Also Examples

View source: R/class_gengraph.R

Description

A generic structure for decomposable graphical models

Usage

1
gengraph(df, type = "fwd", q = 0.5, sparse_qic = TRUE)

Arguments

df

Character data.frame

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

sparse_qic

Logical. If nrow(df) is small, the tables tends to be sparse. In these cases the usual penalty term of AIC and BIC is often too restrictive. If sparse_qic is TRUE this penality is computed according to a sparse criteria. The criteria resembles the usual penalty as nrow(df) grows.

Value

A gengraph object with child class type used for model selection.

See Also

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

Examples

1
2
gengraph(derma, type = "fwd")
gengraph(derma, type = "bwd")

ess documentation built on May 31, 2021, 9:10 a.m.