Skip to contents

Create all possible dags for a set of variables

Export a HTML overview of a set of DAGs

Usage

create_all_dags(varNames, silent = FALSE)

# S3 method for raven_dags
print(x, ...)

export_dag_overview(x, select = "dag_and_all_vars")

Arguments

varNames

The variable names

silent

Whether to be silent or chatty

x

The raven_dags object.

select

Either one of "is_dag", "uses_all_vars", or "dag_and_all_vars"; NULL; or a logical vector of the same length as as the total number of graphs in x.

Value

An object of class raven_dags.

A character vector with the HTML.

Examples

res <- raven::create_all_dags(c('A', 'B', 'C'));
#> Starting to process 6 dyads, in 3 combinations.
#> For 1 edge combinations, expanded the grid of 6 edge dyads to a matrix with 6 rows.
#> For 2 edge combinations, expanded the grid of 6 edge dyads to a matrix with 36 rows.
#> For 3 edge combinations, expanded the grid of 6 edge dyads to a matrix with 216 rows.
#> Out of the 6 edge combinations 0 contained duplicate dyads, and 0 contained loops. Removing those to retain  edge combinations.
#> Out of the 36 edge combinations 6 contained duplicate dyads, and 12 contained loops. Removing those to retain 24 edge combinations.
#> Out of the 216 edge combinations 96 contained duplicate dyads, and 168 contained loops. Removing those to retain 48 edge combinations.
#> Starting to sort and prune edge combinations for a maximum number of edges of 3, containing respectively '6', '36' & '216' edge combinations each.
#> Starting to compose the full DAG list for 26 edge combinations.
raven::export_dag_overview(res);
res <- raven::create_all_dags(c('a', 'b', 'c'));
#> Starting to process 6 dyads, in 3 combinations.
#> For 1 edge combinations, expanded the grid of 6 edge dyads to a matrix with 6 rows.
#> For 2 edge combinations, expanded the grid of 6 edge dyads to a matrix with 36 rows.
#> For 3 edge combinations, expanded the grid of 6 edge dyads to a matrix with 216 rows.
#> Out of the 6 edge combinations 0 contained duplicate dyads, and 0 contained loops. Removing those to retain  edge combinations.
#> Out of the 36 edge combinations 6 contained duplicate dyads, and 12 contained loops. Removing those to retain 24 edge combinations.
#> Out of the 216 edge combinations 96 contained duplicate dyads, and 168 contained loops. Removing those to retain 48 edge combinations.
#> Starting to sort and prune edge combinations for a maximum number of edges of 3, containing respectively '6', '36' & '216' edge combinations each.
#> Starting to compose the full DAG list for 26 edge combinations.
raven::export_dag_overview(res);