Skip to content

graphpcor

0.1.25Package record

Models for Correlation Matrices Based on Graphs

0packages depend
1.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Implement some models for correlation/covariance matrices including two approaches to model correlation matrices from a graphical structure. One use latent parent variables as proposed in Sterrantino et. al. (2024) doi:10.1007/s10260-025-00788-y. The other uses a graph to specify conditional relations between the variables. The graphical structure makes correlation matrices interpretable and avoids the quadratic increase of parameters as a function of the dimension. In the first approach a natural sequence of simpler models along with a complexity penalization is used. The second penalizes deviations from a base model. These can be used as prior for model parameters, considering C code through the 'cgeneric' interface for the 'INLA' package (https://www.r-inla.org). This allows one to use these models as building blocks combined and to other latent Gaussian models in order to build complex data models.

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK6 OK2026-05-08
  • ERROR6 OK, 1 ERROR2026-03-24
Advisories

none known

Documentation

In release 0.1.25
READMENoVignettesYes · 1 · dynamicNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
18
Examples that run
100%4 run in a plain check
Exported functions with examples
44%
Documented parameters
100%
Return-value docs
78%
Help pages citing references
17%

Also includes 8 demo scripts (run with demo())

Downloads

1.8K
CRAN downloads in the past year
Rank #15,268 · ~5/day · ~154/mo
Daily download trend is not available in this view yet.
22030 days
80890 days
1.8K1 year
Compare downloads with other packages →
Also on401 r2u6 autocran

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing graphpcor adds 11 packages (7 with compiled code, 8.1 MB of source tarballs). Heaviest: igraph 4.8 MB, vctrs 1.0 MB, rlang 766 KB.

Depends (4)
R >= 4.3MatrixINLAtoolsnumDeriv
Imports (4)
methodsstatsutilsigraph
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (5)
Maintainer since 0.1.11 (2025), Author, Copyright holder
Author, Copyright holder
Author, Copyright holder
Author, Copyright holder
Listed in earlier versions (2)
Krainski
no longer listed · 0.1.11 to 0.1.12
Teixeira Krainski
no longer listed · 0.1.15 to 0.1.25
Releases (5)

Pick two releases to compare their code metrics.

  • unarchivedReturned to CRAN
    2026-05-07
  • 0.1.25Latest
    record
    2026-05-07 · current release · diff ↗ ·
    removed 1 export
    drop1
    added 2 exports
    gphcQ, tpcQ
  • R
    R 4.6.0 released · 2026-04-24
  • archivedRemoved from CRAN
    2026-04-23
    requires archived package 'INLAtools'
  • unarchivedReturned to CRAN
    2026-03-23
  • 0.1.24
    record
    2026-03-23 · diff ↗ ·
    added 3 exports
    drop1, edges, stan_add
  • archivedRemoved from CRAN
    2026-01-29
    issues were not corrected in time
  • 0.1.15
    record
    2026-01-15 · diff ↗ ·
    removed 13 exports
    Lprec, cgeneric, cgeneric_graphpcor, cgeneric_treepcor, graph, initial, is.zero, mu, prec, prior, rcorrel, rgeneric, theta2correl
    added 3 exports
    basecor, basepcor, cholcor
  • 0.1.12
    record
    2025-04-27 · diff ↗
  • 0.1.11
    record
    2025-04-19
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-04-19
Total releases
5 / 1 yrs
License
GPL (>= 2) OSI
Additional repositories
inla.r-inla-download.org
Minimum R
≥ 4.3
Download size
550 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("graphpcor")
Teixeira Krainski, E., Freni-Sterrantino, A., Rue’, H., Rustand, D., & van Niekerk, J. (2026). graphpcor: Models for Correlation Matrices Based on Graphs (Version 0.1.25) [Computer software]. https://doi.org/10.32614/CRAN.package.graphpcor

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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

From data release v2026-10-26, 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