| Function_name | Package_name | Use |
|---|---|---|
| cmh.test | lawstat | To conduct the Mantel-Haenszel Chi-square test |
| DAG.empty | simcausal | To initialize an empty DAG |
| ftable | base/stats | To create a flat contingency table |
| plotDAG | simcausal | To visualize a DAG |
| set.DAG | simcausal | To create a DAG |
| sim | simcausal | To simulate data using a DAG |
R functions (R)
The list of new R functions introduced in this Confounding and bias lab component are below: