R Observatory
Search

Penalized Fast Causal Inference for High-Dimensional Structure Learning

install.packages("PFCI")
CRAN 30-day downloads, method
246−30.7% down on the 30 days before, the worse direction
Test coverage, method
2%of lines run by tests

Implements Penalized Fast Causal Inference (PFCI), a two-stage causal structure learning procedure for high-dimensional settings with potential latent variables and selection bias. In the first stage, neighborhood selection via the Lasso constructs a sparse undirected skeleton.

Full description

Implements Penalized Fast Causal Inference (PFCI), a two-stage causal structure learning procedure for high-dimensional settings with potential latent variables and selection bias. In the first stage, neighborhood selection via the Lasso constructs a sparse undirected skeleton. In the second stage, the Fast Causal Inference (FCI) algorithm orients edges on this reduced graph, producing a Partial Ancestral Graph (PAG) that accounts for latent confounders. The method is consistent under sparsity assumptions and substantially faster than standard FCI and RFCI in high dimensions. See Pal, Ghosh, and Yang (2025) <doi:10.48550/arXiv.2507.00173> for the underlying theory.

Maintainer
Dhrubajyoti Ghosh
Latest release
3 Jun 2026
First release
2 Jun 2026

Compare with another package

More details
Releases
2
Needs compilation
No
Config/testthat/edition
3
Date
2026-05-28
Language
en-US
RoxygenNote
7.3.3
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' entry:

citation("PFCI")

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

It points to 10.48550/arxiv.2507.00173.

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 PFCI version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.1.1
    Time taken
    41 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.1.1
    Time taken
    33 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.1.1
    Time taken
    28 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.1.1
    Time taken
    33 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    66 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.1.1
    Time taken
    24 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    77 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    63 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    35 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    35 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.1.1
    Time taken
    22 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    59 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.1.1
    Time taken
    63 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
3 Jun 2026OK6000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
247−31.6% down on the 30 days before, the worse directionIt is the sum of 2 channels: CRAN and r2u. autoCRAN was counted over another window, so it is not added.

CRAN rank

18,232 of 26,530

CRAN

246 downloads in the last 30 days

Rank
18,232 of 26,530
Change
−30.7% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

1 downloads in the last 30 days

Rank
19,986 of 30,526
Change
−83.3% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

0 downloads in the last 7 days

It is not added because it has no figure for the last 30 days.

Over time

Compare downloads

Needs
3
Dependent packages
0
Suggested by
0
Needs (3)
Installing it adds
1 package, 9 KB of source
Of those, need compilation
1
Optional extras (8)
Functions
23
Public exports
6
Lines of R code
803
Median complexity
4
Functions (23)
Size and composition

Lines by kind (1,281)

KindLinesShare
R code80363%
Tests726%
Documentation32525%
Guides816%

Lines by language

LanguageLinesShare
R87568%
Rd32525%
Vignettes816%

Languages are counted from file extensions.

Files
36
R functions
23
Object systems
S3: 1 methods
Complexity
Median
4
Mean
5.04
Highest
15
Median lines per function
20
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
23
Calls
21
Unconnected
3
Groups
2
Growth (2 releases)
Total lines by release
1,301 on 2 Jun 20261,281 on 3 Jun 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
1.5%
Expressions run by tests
0.7%
Test cases
7
Exports named in tests
83.3%
Coverage by file (7)
Coverage run
Lines counted
391
Lines the tests ran
6
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
7
Lines of tests
72
Test lines per line of code
0.09
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
100%
Examples run in checks
16.7%
Guides (1)
Other documentation
README
Yes, 130 words
Release notes file
Yes
Help pages
6
Lines of documentation
325

djghosh1123 / pfci on github.com

Stars
0
Forks
0
Open issues
–
Last commit
21 Jun 2026
Activity
Commits
–
Open pull requests
0
Tagged releases
0
Latest tagged release
–
Issues closed in
–
Pull requests closed in
–
Pull requests merged
–
Created
28 May 2026
Licence file reads as
–
Development practices (6)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceREADME.Rmd
CRAN release processcran-comments.md, CRAN-SUBMISSION
Lint, format, editorRStudio project

Method, repository practices

Across djghosh1123

R releases
  • On CRAN
  • Release
VersionReleasedR
0.1.1 current3 Jun 20264.6.0
0.1.02 Jun 20264.6.0
Release notes (0.1.1)
  • Removed install.packages() calls from inst/scripts/ files to comply with CRAN policies.
  • Fixed writing path in inst/scripts/run_simulations_full.R to use tempdir() instead of getwd().