Learn R Programming

SEMID (version 0.4.1)

parents: All parents of a collection of nodes.

Description

Returns all parents of the collection (does not necessarily include the input nodes themselves unless they are parents of one another).

Usage

parents(this, nodes, ...)

# S3 method for LatentDigraphFixedOrder parents(this, nodes, includeObserved = T, includeLatents = T, ...)

# S3 method for LatentDigraph parents(this, nodes, includeObserved = T, includeLatents = T, ...)

# S3 method for MixedGraph parents(this, nodes, ...)

Value

the observed parents.

Arguments

this

the graph object.

nodes

nodes the nodes of which to find the parents.

...

ignored.

includeObserved

if TRUE includes observed nodes in the returned set.

includeLatents

if TRUE includes latent nodes in the returned set.