ges: Greedy Equivalence Search Algorithm (GES) With Bootstrapping

Description Usage Arguments Examples

View source: R/algorithms.R

Description

This function allows you to learn a directed graph from a dataset using the Greedy Equivalence Search (GES) algorithm of Chickering (2002).

Usage

1
2
3
4
5
6
7
8
9
ges(
  df,
  blacklist = NULL,
  adaptive = c("none", "vstructures", "triples"),
  maxDegree = integer(0),
  m = NULL,
  to = c("igraph", "adjacency", "edges", "graph", "bnlearn"),
  seed = sample(1:10^6, 1)
)

Arguments

df

Dataset.

blacklist

A data frame with two columns, containing a set of arcs not to be included in the graph (optional).

adaptive

Whether constraints should be adapted to newly detected v-structures or unshielded triples: 'none', 'vstructures', or 'triples'. Default: 'none'

maxDegree

Parameter used to limit the vertex degree of the estimated graph. Default: integer(0)

m

Size of training set (optional). Default: nrow(df)/2

to

Output format ('adjacency', 'edges', 'graph', 'igraph', or 'bnlearn') (optional).

seed

Seed used for random selection. Default: NULL

Examples

1
g <- ges(df)

rlebron-bioinfo/gnlearn documentation built on July 25, 2020, 12:38 p.m.