Skip to main content

Identify an interventional distribution from a PAG

Source: R/identification.R

Description

idp() decides whether P(y | do(x)) is identifiable from a PAG, i.e. in every MAG of its Markov equivalence class, and if so returns it as a formula in terms of the observational distribution, or NULL if it is not identifiable. It implements the IDP algorithm, the PAG analogue of id(). cidp() additionally conditions on given (the CIDP algorithm, the analogue of idc()), reducing to idp() when given is empty.

Usage

idp(cg, x, y)

cidp(cg, x, y, given = character())

Arguments

cg A PAG created with cgraph(), without selection bias (undirected edges).
x, y Intervention (exposure) and outcome node name, or character vector of node names. Must be disjoint from each other (and from given, for cidp()).
given Character vector of node names to additionally condition on (cidp() only).

Value

A character scalar with the rendered formula, or NULL if the effect is not identifiable.

References

Jaber A, Ribeiro A, Zhang J, Bareinboim E (2022). “Causal Identification under Markov equivalence: Calculus, Algorithm, and Completeness.” In Koyejo S, Mohamed S, Agarwal A, Belgrave D, Cho K, Oh A (eds.), Advances in Neural Information Processing Systems, volume 35, 3679–3690. doi:10.52202/068431-0266. https://proceedings.neurips.cc/paper_files/paper/2022/file/17a9ab4190289f0e1504bbb98d1d111a-Paper-Conference.pdf.

Examples

mag <- cgraph(B %-->% X, A %<->% X, A %-->% Y, X %-->% Y, class = "MAG")
pag <- mag_to_pag(mag)
idp(pag, "X", "Y")
#> [1] "Σ_{A, B} (P(A, B, X, Y) / P(X | A, B))"

cidp(pag, "X", "Y", given = "A")
#> [1] "(Σ_{B} (P(A, B, X, Y) / P(X | A, B))) / P(A)"