functional {cfid}R Documentation

Identifying Functional of a Counterfactual Query

Description

Identifying functionals are more complicated probabilistic expressions that cannot be expressed as simple observational or interventional probabilities using probability().

Usage

functional(sumset = NULL, terms = NULL, numerator = NULL, denominator = NULL)

## S3 method for class 'functional'
format(x, ...)

## S3 method for class 'functional'
print(x, ...)

Arguments

sumset

A list of objects of class counterfactual_variable (without interventions and with value assignments). If the probability depicts marginalization, sumset defines the set of variables to be marginalized over.

terms

A list of functional objects if the object in question is meant to represent a product of terms.

numerator

A functional or a probability object. If the functional represents a conditional probability that cannot be expressed simply in terms of the set of inputs, this is the numerator of the quotient representation.

denominator

A functional or a probability object. The denominator of the quotient representation.

x

A functional object.

...

Additional arguments passed to format.

Details

When formatted via print or format, the arguments are prioritized in the following order if conflicting definitions are given: (sumset, terms), (numerator, denominator).

Value

An object of class functional, which is a list containing all of the arguments of the constructor.

A character representation of the functional object in LaTeX syntax.


[Package cfid version 0.1.7 Index]