Learn R Programming

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

pcalg (version 1.0-2)

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. 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.0-2

License

GPL (>= 2)

Maintainer

Markus Kalisch

Last Published

April 16th, 2010

Functions in pcalg (1.0-2)

pdsep

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

Internal Pcalg Functions
pcSelect.presel

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

Conditional Independence by Fisher's Z-Transformation
disCItest

Test for (conditional) independence for discrete data
qreach

Compute possible d-sep of node x
gSquareBin

Test for (conditional) independence for binary data
dsep

Test for d-separation in a DAG
dsepTest

Test for d-separation in a DAG
udag2pdag

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

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

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

Estimate multiset of possible total causal effects for several target variables at the same time.
pcAlgo-class

Class "pcAlgo"
ida

Estimate multiset of possible total causal effects from observational data
rmvDAG

Generate Multivariate Data according to a DAG
corGraph

Computing the correlation graph
beta.special.pcObj

Compute set of intervention effects in a fast way
fci

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

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

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

Test for (conditional) independence for gaussian data
pcSelect

PC-Select: Estimate subgraph around a response variable
beta.special

Compute set of intervention effects
mcor

Compute Correlation Matrix
udag2pag

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

Test for (conditional) independence for discrete data
randomDAG

Generate a Directed Acyclic Graph (DAG) randomly
pdag2dag

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

Convert a DAG to a CPDAG
fciAlgo-class

Class "fciAlgo"
shd

Compute Structural Hamming Distance (SHD)
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
pcorOrder

Compute Partial Correlations
binCItest

Test for (conditional) independence for binary data
udag2pdagRelaxed

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

Plot partial ancestral graphs (PAG)
udag2pdagSpecial

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