causal_effect {cfid}R Documentation

Causal Effect Identification

Description

Identify a causal effect of the form P(ydo(x),z)P(y|do(x),z) from P(v)P(v) in GG.

Usage

causal_effect(g, y, x = character(0), z = character(0), v = integer(0))

Arguments

g

A dag object depicting the causal diagram GG.

y

A character vector of response variables YY.

x

A character vector of intervention variables XX.

z

An optional character vector of conditioning variables ZZ.

v

An optional named integer vector giving the value assignments for observed variables in the model, i.e. V=vV = v or for a subset of VV.

Value

An object of class query which is a list with the following components:


[Package cfid version 0.1.7 Index]