Learn R Programming

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

pcalg (version 1.0-0)

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) Completetd 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. 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.0-0

License

GPL (>= 2)

Maintainer

Markus Kalisch

Last Published

March 14th, 2010

Functions in pcalg (1.0-0)

pcSelect

PC-Select: Estimate subgraph around a response variable
pdsep

Compute possible d-sep for each node and test and adapt graph accordingly
pc

Estimate the equivalence class of a DAG (CPDAG) using the PC algorithm
mcor

Compute Correlation Matrix
disCItest

Test for (conditional) independence for discrete data
idaFast

Estimate multiset of possible total causal effects for several target nodes at the same time.
beta.special.pcObj

Compute set of intervention effects in a fast way
pcorOrder

Compute Partial Correlations
binCItest

Test for (conditional) independence for binary data
pdag2dag

Extend a PDAG to a DAG
shd

Compute Structural Hamming Distance (SHD)
beta.special

Compute set of intervention effects
skeleton

Estimate the skeleton of a DAG using the PC Algorithm
fciAlgo-class

Class "fciAlgo"
pcAlgo

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

Computing the correlation graph
plotAG

Plot partial ancestral graphs (PAG)
fci

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

Test for d-separation in a DAG
condIndFisherZ

Conditional Independence by Fisher's Z-Transformation
gaussCItest

Test for (conditional) independence for gaussian data
qreach

Compute possible d-sep of node x
gSquareDis

Test for (conditional) independence for discrete data
udag2pdagSpecial

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

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

Test for (conditional) independence for binary data
getNextSet

Iteration through a list of all combinations of choose(n,k)
pcSelect.presel

PC-Select preselection: Estimate subgraph around a response variable using preselection
compareGraphs

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

Convert a DAG to a CPDAG
ida

Estimate multiset of possible total causal effects from observational data
udag2pag

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

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

Plot the neighbourhood of a specific node in a graph object
pcalg-internal

Internal Pcalg Functions
randomDAG

Generate a Directed Acyclic Graph (DAG) randomly
rmvDAG

Generate Multivariate Data according to a DAG
pcAlgo-class

Class "pcAlgo"
dsepTest

Test for d-separation in a DAG