50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

pcalg (version 2.2-3)

fciPlus: Estimate a PAG by the FCI+ Algorithm

Description

Estimate a Partial Ancestral Graph (PAG) from observational data, using the FCI+ (Fast Causal Inference) Algorithm.

Usage

fciPlus(suffStat, indepTest, alpha, labels, p)

Arguments

suffStat
sufficient statistics: A named list containing all necessary elements for the conditional independence decisions in the function indepTest.
indepTest
a function for testing conditional independence. The function is internally called as indepTest(x,y, S, suffStat), and tests conditional independence of x and y
alpha
numeric significance level (in $(0, 1)$) for the individual conditional independence tests.
labels
(optional) character vector of variable (or node) names. Typically preferred to specifying p.
p
(optional) number of variables (or nodes). May be specified if labels are not, in which case labels is set to 1:p.

Value

  • An object of class fciAlgo (see fciAlgo) containing the estimated graph (in the form of an adjacency matrix with various possible edge marks), the conditioning sets that lead to edge removals (sepset) and several other parameters.

Details

A variation of FCI (Fast Causal Inference). For details, please see the references, and also fci.

References

T. Claassen, J. Mooij, and T. Heskes (2013). Learning Sparse Causal Models is not NP-hard. In UAI 2013, Proceedings of the 29th Conference on Uncertainty in Artificial Intelligence

See Also

fci for estimating a PAG using the FCI algorithm.

Examples

Run this code
##################################################
## Example without latent variables
##################################################

set.seed(42)
p <- 7
## generate and draw random DAG :
myDAG <- randomDAG(p, prob = 0.4)

## find skeleton and PAG using the FCI algorithm
suffStat <- list(C = cov2cor(trueCov(myDAG)), n = 10^9)
res <- fciPlus(suffStat, indepTest=gaussCItest,
           alpha = 0.9999, p=p)

Run the code above in your browser using DataLab