gengraph: A generic and extendable structure for decomposable graphical models
Description
A generic structure for decomposable graphical models
Usage
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.