Learn R Programming

⚠️There's a newer version (2.7-12) of this package.Take me there.

pcalg (version 1.1-4)

Estimation of CPDAG/PAG and causal inference using the IDA algorithm

Description

Standard and robust estimation of the equivalence class of a Directed Acyclic Graph (DAG) via the PC-Algorithm. The equivalence class is represented by its (unique) Completete Partially Directed Acyclic Graph (CPDAG). Furthermore, a PAG instead of a CPDAG can be estimated if latent variables and/or selection variables are assumed to be present. FCI and RFCI are available for estimating PAGs. Functions for causal inference using the IDA algorithm (based on do-calculus of Judea Pearl) are provided for CPDAGs.

Copy Link

Version

Install

install.packages('pcalg')

Monthly Downloads

1,927

Version

1.1-4

License

GPL (>= 2)

Maintainer

Markus Kalisch

Last Published

May 9th, 2011

Functions in pcalg (1.1-4)

dsep

Test for d-separation in a DAG
gmB

Graphical Model 5-Dim Binary Example Data
gSquareDis

G square Test for (Conditional) Independence of Discrete Data
beta.special

Compute set of intervention effects
corGraph

Computing the correlation graph
beta.special.pcObj

Compute set of intervention effects in a fast way
condIndFisherZ

Conditional Independence by Fisher's Z-Transformation
fci

Estimate the equivalence class of a MAG (PAG) using the FCI Algorithm
binCItest

Test for (conditional) independence for binary data
gSquareBin

G square Test for (Conditional) Independence of Binary Data
gmI

Graphical Model IDA Data Example
disCItest

Test for (conditional) independence for discrete data
pc.cons.intern

Internal function for conservative PC algorithm
gmD

Graphical Model Discrete 5-Dim Example Data
pcalg-internal

Internal Pcalg Functions
idaFast

Multiset of Possible Total Causal Effects for Several Target Var.s
getNextSet

Iteration through a list of all combinations of choose(n,k)
udag2pdagRelaxed

Extend a pcAlgo-object containing a skeleton to a PDAG
gaussCItest

Test for (conditional) independence for gaussian data
dsepTest

Test for d-separation in a DAG
dag2cpdag

Convert a DAG to a CPDAG
gmL

Latent Variable Graphical Model Data Example
ida

Estimate Multiset of Possible Total Causal Effects
udag2pdagSpecial

Extend a pcAlgo-object containing a skeleton to a PDAG using different methods if problems occur
pcAlgo

PC-Algorithm: Estimate the Underlying Graph (Skeleton) or Equivalence Class (CPDAG) of a DAG
mcor

Compute (Large) Correlation Matrix
gmG

Graphical Model 8-Dimensional Gaussian Example Data
compareGraphs

Compare two graphs in terms of TPR, FPR and TDR
pdag2dag

Extend a Partially Directed Acyclic Graph (PDAG) to a DAG
skeleton

Estimate the skeleton of a DAG using the PC Algorithm
rfci

Estimate the equivalence class of a MAG (PAG) using the RFCI Algorithm
shd

Compute Structural Hamming Distance (SHD)
pcorOrder

Compute Partial Correlations
pcSelect.presel

Estimate Subgraph around a Response Variable using Preselection
randomDAG

Generate a Directed Acyclic Graph (DAG) randomly
plotAG

Plot partial ancestral graphs (PAG)
pc

Estimate the equivalence class of a DAG using the PC algorithm
udag2pag

Extend a pcAlgo-object containing a skeleton to a PAG
pcSelect

PC-Select: Estimate subgraph around a response variable
plotSG

Plot the subgraph around a Specific Node in a Graph Object
pcAlgo-class

Class "pcAlgo"
fciAlgo-class

Class "fciAlgo"
qreach

Compute possible d-sep of node x
pdsep

Compute Possible-D-Sep for Each Node and Adapt Graph Accordingly
udag2pdag

Extend a pcAlgo-object containing a skeleton to a PDAG
rmvDAG

Generate Multivariate Data according to a DAG