diff --git a/NEWS.md b/NEWS.md index 96f43ff..2be6d77 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,6 @@ # ggdag (development version) -* Introduced new functions `query_conditional_independence()`, `test_conditional_independence()`, and `ggdag_conditional_independence()` for detecting, testing, and visualzing implied conditional indpendencies in a given DAG and dataset (#139) +* Introduced new functions `query_conditional_independence()`, `test_conditional_independence()`, and `ggdag_conditional_independence()` for detecting, testing, and visualizing implied conditional independencies in a given DAG and dataset (#139) * Introduced new functions `aes_dag()` and `geom_dag()` to simplify specification of ggplot code for most DAGs. Also refactored most quick plots to use these functions (#121) * Added new function `geom_label_repel2()` for more opinionated repelled labels that often look better on DAGs (#132) diff --git a/R/implied_conditional_independence.R b/R/implied_conditional_independence.R index 8030073..9728f69 100644 --- a/R/implied_conditional_independence.R +++ b/R/implied_conditional_independence.R @@ -2,7 +2,7 @@ #' #' `query_conditional_independence()` queries conditional independencies implied #' by a given DAG. These serve as potential robustness checks for your DAG. -#' `test_conditional_independence()` runs the tests of indpendence implied by +#' `test_conditional_independence()` runs the tests of independence implied by #' the DAG on a given dataset. `ggdag_conditional_independence()` plots the #' results as a forest plot. #' diff --git a/R/utils.R b/R/utils.R index 2d46d74..e766eea 100644 --- a/R/utils.R +++ b/R/utils.R @@ -26,7 +26,6 @@ utils::globalVariables( "e", "exogenous", "from", - "from_formula", "independence", "instrumental", "name", @@ -35,6 +34,7 @@ utils::globalVariables( "segment.colour", "status", "to", + "to_formula", "type", "v", "w", diff --git a/inst/WORDLIST b/inst/WORDLIST index 5447410..fc15cf1 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -45,6 +45,7 @@ graphviz grey halfcircle hjust +independencies lineheight linetype mismeasure @@ -57,9 +58,11 @@ reversable roxygen tbl tdy +tetrads tibble tidygraph tidyverse +tol unassociated unconfounded undirected diff --git a/man/query_conditional_independence.Rd b/man/query_conditional_independence.Rd index 87b0393..2f9015c 100644 --- a/man/query_conditional_independence.Rd +++ b/man/query_conditional_independence.Rd @@ -107,7 +107,7 @@ or test results, or a ggplot of the results. \description{ \code{query_conditional_independence()} queries conditional independencies implied by a given DAG. These serve as potential robustness checks for your DAG. -\code{test_conditional_independence()} runs the tests of indpendence implied by +\code{test_conditional_independence()} runs the tests of independence implied by the DAG on a given dataset. \code{ggdag_conditional_independence()} plots the results as a forest plot. }