Skip to content

Pattern Causality Analysis

0packages dependsuggested by 1
2.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Infer causation from observational data through pattern causality analysis (PC), with original algorithm for time series data from Stavroglou et al. (2020) doi:10.1073/pnas.1918269117, as well as methodological extensions for spatial cross-sectional data introduced by Zhang & Wang (2025) doi:10.1080/13658816.2025.2581207, together with a systematic description proposed in Lyu et al. (2026) doi:10.1016/j.compenvurbsys.2026.102435.

Changes in 0.3

new

  • Provide dmi generic for *delayed mutual information* method (#77).

enhancements

  • Clarify output indexing and boundary handling in fnn generic (#69).

breaking changes

  • Reverse argument order for variable indices to (source, target) (#85).
  • Impose geometric constraint k >= E+1 in ops generic (#81).
  • Euclidean/Manhattan distances now automatically compensate for dimensions skipped due to NA/NaN, aligned with base R dist() function (#79).

bug fixes

  • Fix incorrect prediction horizon parameter in the time series pattern causality implementation (#80).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE12 OK, 1 NOTE2026-04-22
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
  • NOTE6 OK, 1 NOTE2026-03-31
Advisories

none known

Documentation

In release 0.3
READMEYes · 304 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.3Citation fileYes · software entry onlyWebsiteYes · pkgdown
Help pages
4
Examples that run
100%4 run in a plain check
Exported functions with examples
100%
Documented parameters
not tracked
Return-value docs
not tracked
Help pages citing references
75%
Vignettes (1)

Downloads

2.8K
CRAN downloads in the past year
Rank #10,951 · ~8/day · ~230/mo
Daily download trend is not available in this view yet.
36430 days
96790 days
2.8K1 year
Compare downloads with other packages →
Also on172 r2u3 autocran

Repository

stscl/pc ↗Organization: stscl
24Stars
2Forks
0Open issues
0Open PRs
3Releases
818Commits
1Commit identities
causal-discoverycausalitycausality-algorithmscausality-analysiscppgeoinformaticspattern-causalityr
818 commits · Last activity 2026-10-10 · +4.3% stars, 30d · Default branch at 0.4, ahead of CRAN 0.3 (checked 2026-10-22)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
10
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-03-25 · 22026-10-12 · 24
PracticesBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/stscl/pc on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-10 · The repository has a site deploy workflow

pkgdown site last built 2026-10-10

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing pc adds 46 packages (31 with compiled code, 50 MB of source tarballs). Heaviest: sf 9.3 MB, ggplot2 6.0 MB, spdep 4.5 MB.

Depends (1)
R >= 4.1.0
Imports (6)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1 (2026), Copyright holder
Releases (3)

Pick two releases to compare their code metrics.

  • 0.3Latest
    record
    2026-10-10 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2
    record
    2026-04-10 · diff ↗
  • 0.1
    record
    2026-03-30
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-03-30
Total releases
3 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Download size
1.3 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("pc")

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

It points to 10.32614/cran.package.pc.

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 pc version 0.3 [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