Learn R Programming

ess (version 1.1.2)

walk.fwd: Stepwise efficient forward selection in decomposable graphical models

Description

Stepwise efficient forward selection in decomposable graphical models

Usage

# S3 method for fwd
walk(x, df, q = 0.5, thres = 5)

Arguments

x

A fwd object

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.

Value

A fwd object; a subclass of gengraph) used for forward selection.

Details

A fwd object can be created using the gengraph constructor with type = "fwd"

References

https://arxiv.org/abs/1301.2267, 10.1109/ictai.2004.100

See Also

fit_graph, walk.bwd, gengraph

Examples

Run this code
# NOT RUN {
d <- derma[, 10:25]

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

# }

Run the code above in your browser using DataLab