Learn R Programming

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

pcalg (version 1.1-6)

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,818

Version

1.1-6

License

GPL (>= 2)

Maintainer

Markus Kalisch

Last Published

March 22nd, 2013

Functions in pcalg (1.1-6)

binCItest

Test for (conditional) independence for binary data
mcor

Compute (Large) Correlation Matrix
rmvDAG

Generate Multivariate Data according to a DAG
fci

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

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

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

Estimate the equivalence class of a DAG using the PC algorithm
beta.special

Compute set of intervention effects
gmL

Latent Variable Graphical Model Data Example
rfci

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

Generate a Directed Acyclic Graph (DAG) randomly
qreach

Compute possible d-sep of node x
gmD

Graphical Model Discrete 5-Dim Example Data
pcorOrder

Compute Partial Correlations
pcSelect.presel

Estimate Subgraph around a Response Variable using Preselection
gaussCItest

Test for (conditional) independence for gaussian data
udag2pdag

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

Test for (conditional) independence for discrete data
corGraph

Computing the correlation graph
dag2cpdag

Convert a DAG to a CPDAG
fciAlgo-class

Class "fciAlgo"
pcSelect

PC-Select: Estimate subgraph around a response variable
gSquareDis

G square Test for (Conditional) Independence of Discrete Data
pc.cons.intern

Internal function for conservative PC algorithm
gmG

Graphical Model 8-Dimensional Gaussian Example Data
udag2pag

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

Conditional Independence by Fisher's Z-Transformation
skeleton

Estimate the skeleton of a DAG using the PC Algorithm
shd

Compute Structural Hamming Distance (SHD)
pcAlgo

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

Plot the subgraph around a Specific Node in a Graph Object
udag2pdagSpecial

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

Graphical Model 5-Dim Binary Example Data
udag2pdagRelaxed

Extend a pcAlgo-object containing a skeleton to a PDAG
beta.special.pcObj

Compute set of intervention effects in a fast way
gmI

Graphical Model IDA Data Example
ida

Estimate Multiset of Possible Total Causal Effects
pdsep

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

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

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

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

Test for d-separation in a DAG
plotAG

Plot partial ancestral graphs (PAG)
dsepTest

Test for d-separation in a DAG
pcAlgo-class

Class "pcAlgo"
pcalg-internal

Internal Pcalg Functions