Learn R Programming

dagitty (version 0.1-9)

impliedConditionalIndependencies: List Implied Conditional Independencies

Description

Generates a list of conditional independence statements that must hold in every probability distribution compatible with the given model.

Usage

impliedConditionalIndependencies(x, type = "missing.edge",
  max.results = 100)

Arguments

x
the input graph, a DAG, MAG, or PDAG.
type
can be one of "missing.edge" or "basis.set". With the former, one testable implication is returned per missing edge of the graph. With the latter, one testable implication is returned per vertex of the graph that has non-descendants other than its parent
max.results
integer. The listing of conditional independencies is stopped once this many results have been found. Use Inf to generate them all. This applies only when type="missing.edge".

Examples

Run this code
g <- dagitty( "dag{ x -> m -> y }" )
impliedConditionalIndependencies( g ) # one
latents( g ) <- c("m")
impliedConditionalIndependencies( g ) # none

Run the code above in your browser using DataLab