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 dag object depicting the causal diagram G.

y

A character vector of response variables Y.

x

A character vector of intervention variables X.

z

An optional character vector of conditioning variables Z.

v

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

Value

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


[Package cfid version 0.1.7 Index]