causal_effect {cfid} | R Documentation |
Causal Effect Identification
Description
Identify a causal effect of the form P(y|do(x),z)
from P(v)
in
G
.
Usage
causal_effect(g, y, x = character(0), z = character(0), v = integer(0))
Arguments
g |
A |
y |
A |
x |
A |
z |
An optional |
v |
An optional named |
Value
An object of class query
which is a list
with the following
components:
-
id
Alogical
value that isTRUE
if the query is identifiable andFALSE
otherwise. -
formula
Afunctional
object expressing the causal effect in terms of the joint probability distributionP(v)
for identifiable queries orNULL
if the query is not identifiable. -
data
The available data, forcausal_effect
this is always"observations"
-
causaleffect
The original queryP(y|do(x),z)
as aprobability
object. -
undefined
Alogical
value, this is alwaysFALSE
forcausaleffect