walk {ess}R Documentation

Stepwise model selection

Description

Stepwise model selection in decomposable graphical models

Usage

walk(x, df, q, thres)

Arguments

x

fwd or bwd objects

df

data.frame

q

Penalty term in the stopping criterion (0 = AIC and 1 = BIC)

thres

A threshold mechanism for choosing between two different ways of calculating the entropy. Can Speed up the procedure with the "correct" value.

Details

A fwd (or bwd) object can be created using the gengraph constructor with type = "fwd".

Value

A fwd or bwd object with one additional edge than the input object.

See Also

fit_graph, walk.fwd, gengraph

Examples


d <- derma[, 10:25]

g <- gengraph(d, type = "fwd")
s <- walk(g, d)
print(s)
plot(s)
adj_lst(s)
adj_mat(s)


[Package ess version 1.1.2 Index]