y0-causal-inference / causaleffect

causaleffect: R package for identifying causal effects.
1 stars 0 forks source link

Test and document Santu Tikka's `causaleffect` R package #8

Open hmhummel opened 1 month ago

hmhummel commented 1 month ago

Completed documentation & testing for causal.effect functions

I documented 5 causaleffect functions, including simplify, join, insert, powerset, and parse.expression. causal.effect already had documentation from Tikka.

There are 25 total unit tests created using the testthat R package. 23/25 unit tests pass. I tested 6 functions per vignette (includes topo, which is undocumented because it's an igraph function) There are 3 vignettes/test cases from causal.effect on CRAN: 1st with unobserved confounders, 2nd with pruning & fractions, and 3rd with simplest graph possible (no unobserved confounders). I created a unit test for each function per vignette: 7 unit tests for test_case_1, 9 unit tests for test_case_2, and 9 unit tests for test_case_3.

Needs work