Learn R Programming

pcalg (version 2.2-4)

fciAlgo-class: Class "fciAlgo" of FCI Algorithm Results

Description

This class of objects is returned by the function fci to represent the estimated PAG. Objects of this class have methods for the functions plot, show and summary.

Usage

"show"(object) "print"(x, zero.print = ".", ...)
"plot"(x, y, main = NULL, ...)

Arguments

x, object
a "fciAlgo" object.
zero.print
string for printing 0 (‘zero’) entries in the adjacency matrix.
y
(generic plot() argument; unused).
main
main title, not yet supported.
...
optional further arguments (passed from and to methods).

Creation of objects

Objects can be created by calls of the form new("fciAlgo", ...), but are typically the result of fci(..).

Slots

The slots call, n, max.ord, n.edgetests, sepset, and pMax are inherited from class "gAlgo", see there. In addition, "fciAlgo" has slots
amat:
a matrix: The the estimated graph, represented by its adjacency matrix. The edge marks are encoded by numbers: 0 = no edge, 1 = circle, 2 = arrowhead, 3 = tail. If amat[i,j] = 1 and amat[j,i] = 2, this represents the edge i <-o j.
allPdsep
a list: the ith entry of this list contains Possible D-SEP of node number i.
n.edgetestsPDSEP
the number of new conditional independence tests (i.e., tests that were not done in the first part of the algorithm) that were performed while checking subsets of Possible D-SEP.
max.ordPDSEP
an integer: the maximum size of the conditioning sets used in the new conditional independence that were performed when checking subsets of Possible D-SEP.

Extends

Class "gAlgo".

Methods

plot
signature(x = "fciAlgo"): Plot the resulting graph
show
signature(object = "fciAlgo"): Show basic properties of the fitted object
summary
signature(object = "fciAlgo"): Show details of the fitted object

See Also

fci, pcAlgo

Examples

Run this code
## look at slots of the class
showClass("fciAlgo")
## Not run: 
# ## Suppose, fciObj is an object of class fciAlgo
# ## access slots by using the @ symbol
# fciObj@amat   ## adjacency matrix
# fciObj@sepset ## separation sets
# 
# ## use show, summary and plot method
# show(fciObj)
# summary(fciObj)
# plot(fciObj)
# ## End(Not run)

## Also look at the extensive examples in  ?fci !

Run the code above in your browser using DataLab