Learn R Programming

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

pcalg (version 1.1-5)

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-5

License

GPL (>= 2)

Maintainer

Markus Kalisch

Last Published

April 26th, 2012

Functions in pcalg (1.1-5)

beta.special.pcObj

Compute set of intervention effects in a fast way
fciAlgo-class

Class "fciAlgo"
corGraph

Computing the correlation graph
compareGraphs

Compare two graphs in terms of TPR, FPR and TDR
beta.special

Compute set of intervention effects
pc

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

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

Compute Partial Correlations
fci

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

Plot partial ancestral graphs (PAG)
gmL

Latent Variable Graphical Model Data Example
rfci

Estimate the equivalence class of a MAG (PAG) using the RFCI Algorithm
pc.cons.intern

Internal function for conservative PC algorithm
idaFast

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

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

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

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

Generate a Directed Acyclic Graph (DAG) randomly
dsepTest

Test for d-separation in a DAG
gaussCItest

Test for (conditional) independence for gaussian data
getNextSet

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

Test for d-separation in a DAG
pcSelect.presel

Estimate Subgraph around a Response Variable using Preselection
condIndFisherZ

Conditional Independence by Fisher's Z-Transformation
disCItest

Test for (conditional) independence for discrete data
shd

Compute Structural Hamming Distance (SHD)
gmB

Graphical Model 5-Dim Binary Example Data
pcAlgo-class

Class "pcAlgo"
pdag2dag

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

Generate Multivariate Data according to a DAG
udag2pdag

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

Estimate Multiset of Possible Total Causal Effects
pdsep

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

Graphical Model Discrete 5-Dim Example Data
pcSelect

PC-Select: Estimate subgraph around a response variable
pcalg-internal

Internal Pcalg Functions
gmI

Graphical Model IDA Data Example
binCItest

Test for (conditional) independence for binary data
dag2cpdag

Convert a DAG to a CPDAG
qreach

Compute possible d-sep of node x
gSquareDis

G square Test for (Conditional) Independence of Discrete Data
mcor

Compute (Large) Correlation Matrix
gmG

Graphical Model 8-Dimensional Gaussian Example Data
skeleton

Estimate the skeleton of a DAG using the PC Algorithm
pcAlgo

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

Extend a pcAlgo-object containing a skeleton to a PAG