Skip to content

pc

0.2

Pattern Causality Analysis

1packages depend
1.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Wenbo LyuFirst published 2026-03-302 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 6.2 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
6
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • NOTE2026-03-31
    6 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 256 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
not tracked
Return-value docs
not tracked
References docs
67%

Downloads

1.9K
CRAN downloads in the past year
Rank #9,311 · ~5/day · ~158/mo
Daily download trend is not available in this view yet.
18230 days
1K90 days
1.9K1 year
Compare downloads with other packages →
Also on156 r2u

Repository

Repository
18Stars
2Forks
0Open issues
0Open PRs
2Releases
725Commits
1Contributors
causal-discoverycausalitycausality-algorithmscausality-analysiscppgeoinformaticspattern-causalityr
725 commits · Last activity 2026-08-07 · +5.9% stars, 30d

Stars over time

2026-03-25 · 22026-07-30 · 18

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/stscl/pc on 2026-08-09.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
12 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (6)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

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

Package metadata

First published
2026-03-30
Total releases
2 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("pc")
Lyu, W. (2026). pc: Pattern Causality Analysis (Version 0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.pc

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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.2 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, 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