Skip to content

pcalg

2.7-12Package record

Methods for Graphical Models and Causal Inference

12packages dependsuggested by 6
97.3Kdownloads / year
63.9%test coverage
8/13flavors OK

Overview

About

Functions for causal structure learning and causal inference using graphical models. The main algorithms for causal structure learning are PC (for observational data without hidden variables), FCI and RFCI (for observational data with hidden variables), and GIES (for a mix of data from observational studies (i.e. observational data) and data from experiments involving interventions (i.e. interventional data) without hidden variables). For causal inference the IDA algorithm, the Generalized Backdoor Criterion (GBC), the Generalized Adjustment Criterion (GAC) and some related functions are implemented. Functions for incorporating background knowledge are provided.

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  pcalg/tests/test_pcSelect.R (.Dim: 4, .Dimnames: 4)
'.Dim' should be changed to 'dim'.
'.Dimnames' should be changed to 'dimnames'.
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage:
  ‘amatType.Rd’
\arguments should not be documented without \usage.

CRAN check page ↗

Slowest check: 10.5 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE9 OK, 4 NOTE2026-07-24
  • ERROR9 OK, 3 NOTE, 1 ERROR2026-07-23
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
Show 4 earlier changesHide 4 earlier changes
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.7-12
READMENoVignettesYes · 1 · dynamicNEWSYes · does not mention 2.7-12Citation fileYes · cites a publicationWebsiteYes
Cites a JSS article
Help pages
95 (1 internal)
Examples that run
100%83 run in a plain check
Exported functions with examples
87%
Documented parameters
86%
Return-value docs
97%
Help pages citing references
61%

Downloads

97.3K
CRAN downloads in the past year
Rank #1,370 · ~267/day · ~8.1K/mo
Daily download trend is not available in this view yet.
7.4K30 days
20.7K90 days
97.3K1 year
Compare downloads with other packages →
Also on620 r2u2.2K bioconda257 c2d4u

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing pcalg adds 26 packages (15 with compiled code, 32 MB of source tarballs). Heaviest: BH 14 MB, igraph 4.8 MB, robustbase 2.2 MB. 2 more not on CRAN are not measured.

Depends (1)
R >= 3.5.0
LinkingTo (3)
Enhances (0)
none
Reverse dependencies
12direct
1indirect
Depends 3 · Imports 9
Suggested by 6
Show all 18 packagesHide all 18 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (17)
Author, Maintainer since 0.1-3 (2006)
Author · added in 2.0-1
Author · added in 0.1-4
Contributor · added in 2.4-2
Contributor · added in 0.1-9
Contributor · added in 2.6-0
Contributor · added in 2.2-0
Contributor · added in 2.7-0
Contributor · added in 2.2-0
Contributor · added in 2.2-0
Contributor · added in 2.7-0
Show 6 more contributorsHide 6 contributors
Contributor · added in 2.4-2
Contributor · added in 2.4-2
Contributor · added in 2.2-0
Contributor · added in 2.4-2
Contributor · added in 2.4-2
Contributor · added in 2.4-2
Listed in earlier versions (1)
Marin Maechler
no longer listed · 0.1-3
Releases (49)

Pick two releases to compare their code metrics.

Show 60 earlier eventsHide 60 earlier events
  • 2.7-2
    record
    2021-04-22 · diff ↗
  • 2.7-1
    record
    2021-01-09 · diff ↗
  • 2.7-0
    record
    2020-11-17 · diff ↗ ·
    added 6 exports
    dsepAM, dsepAMTest, pag2anc, pag2conf, pag2edge, searchAM
  • 2.6-12
    record
    2020-09-22 · diff ↗
  • 2.6-11
    record
    2020-08-16 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 2.6-10
    record
    2020-03-03 · diff ↗
  • 2.6-9
    record
    2020-02-11 · diff ↗
  • 2.6-8
    record
    2019-11-21 · diff ↗
  • 2.6-7
    record
    2019-10-23 · diff ↗ ·
    added 1 export
    opt.target
  • 2.6-6
    record
    2019-09-16 · diff ↗
  • 2.6-5
    record
    2019-08-27 · diff ↗ ·
    added 1 export
    optAdjSet
  • 2.6-2
    record
    2019-04-26 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 2.6-0
    record
    2018-06-04 · diff ↗ ·
    removed 2 exports
    unifDAG, unifDAG.approx
    added 1 export
    ages
  • R
    R 3.5.0 released · 2018-04-23
  • 2.5-0
    record
    2017-07-12 · diff ↗ ·
    added 6 exports
    possDe, possAn, pcalg2dagitty, addBgKnowledge, adjustment, isValidGraph
  • R
    R 3.4.0 released · 2017-04-21
  • 2.4-5
    record
    2017-02-22 · diff ↗
  • 2.4-3
    record
    2016-09-28 · diff ↗
  • 2.4-2
    record
    2016-09-26 · diff ↗ ·
    added 3 exports
    targets2mat, lingam, pdag2allDags
  • R
    R 3.3.0 released · 2016-05-03
  • 2.2-4
    record
    2015-07-23 · diff ↗
  • 2.2-3
    record
    2015-07-12 · diff ↗
  • 2.2-2
    record
    2015-06-24 · diff ↗ ·
    added 1 export
    gac
  • 2.2-0
    record
    2015-05-13 · diff ↗ ·
    added 4 exports
    LINGAM, randDAG, unifDAG, unifDAG.approx
  • R
    R 3.2.0 released · 2015-04-16
  • 2.0-10
    record
    2015-03-19 · diff ↗ ·
    added 2 exports
    jointIda, fciPlus
  • 2.0-3
    record
    2014-07-01 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 2.0-2
    record
    2014-03-19 · diff ↗
  • 2.0-1
    record
    2014-03-07 · diff ↗ ·
    removed 15 exports
    make.edge.df, orderEdges, labelEdges, find.sink, adj.check, ci.test, lm.cov, check.new.coll, reach, discr.path, ucp, upd, find.upd, legal.psep, faith.check
    added 22 exports
    getGraph, dreach, legal.path, find.unsh.triple, udag2apag, dag2pag, iplotPC, showEdgeList, showAmat, visibleEdge, possibleDe, pag2magAM, backdoor, r.gauss.pardag, rmvnorm.ivent, gies, ges, gds, simy, mat2targets, dag2essgraph, rfci.vStruc
  • 2.0-1-dup
    record
    2014-02-26 · diff ↗
  • 1.1-6
    record
    2014-03-02 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.1-5
    record
    2012-04-26 · diff ↗ ·
    added 1 export
    rfci
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • 1.1-4
    record
    2011-05-09 · diff ↗ ·
    added 5 exports
    triple2numb, pc.cons.intern, checkTriple, faith.check, rfci
  • R
    R 2.13.0 released · 2011-04-13
  • 1.1-2
    record
    2010-10-27 · diff ↗ ·
    removed 1 export
    rfci
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • 1.0-2
    record
    2010-04-16 · diff ↗
  • 1.0-0
    record
    2010-03-14 · diff ↗ ·
    removed 1 export
    decHeur
    added 16 exports
    skeleton, pc, fci, gSquareBin, gSquareDis, gaussCItest, dsepTest, disCItest, binCItest, dsep, pdsep, ida, idaFast, legal.psep, qreach, plotSG
  • R
    R 2.10.0 released · 2009-10-26
  • 0.1-9
    record
    2009-09-23 · diff ↗ ·
    added 7 exports
    reach, discr.path, ucp, upd, find.upd, udag2pag, plotAG
  • R
    R 2.9.0 released · 2009-04-17
  • 0.1-8
    record
    2009-03-06 · diff ↗ ·
    added 11 exports
    trueCov, ci.test, udag2pdagSpecial, udag2pdagRelaxed, beta.special, beta.special.pcObj, lm.cov, causalEffect, check.new.coll, allDags, pcAlgo.Perfect
  • R
    R 2.8.0 released · 2008-10-20
  • R
    R 2.7.0 released · 2008-04-22
  • 0.1-7
    record
    2008-04-16 · diff ↗
  • 0.1-6
    record
    2008-04-02 · diff ↗ ·
    added 24 exports
    randomDAG, wgtMatrix, rmvDAG, decHeur, pcAlgo, pcSelect, pcSelect.presel, zStat, condIndFisherZ, pcorOrder, compareGraphs, getNextSet, mcor, corGraph, make.edge.df, orderEdges, labelEdges, dag2cpdag, find.sink, adj.check, pdag2dag, amat2dag, udag2pdag, shd
  • R
    R 2.6.0 released · 2007-10-03
  • R
    R 2.5.0 released · 2007-04-24
  • 0.1-5
    record
    2007-04-11 · diff ↗
  • 0.1-4
    record
    2006-11-02 · diff ↗
  • R
    R 2.4.0 released · 2006-10-03
  • 0.1-3
    record
    2006-06-06
  • R
    R 2.3.0 released · 2006-04-24

Package metadata

First published
2006-06-06
Total releases
49 / 20 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
2.1 MB / 7 files
Download size
3.9 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("pcalg")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v047.i11.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for pcalg version 2.7-12 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy