Skip to content

Gaussian Model Invariant by Permutation Symmetry

1packages depend
7.8Kdownloads / year
92.2%test coverage
13/13flavors OK

Overview

About

Find the permutation symmetry group such that the covariance matrix of the given data is approximately invariant under it. Discovering such a permutation decreases the number of observations needed to fit a Gaussian model, which is of great use when it is smaller than the number of variables. Even if that is not the case, the covariance matrix found with 'gips' approximates the actual covariance with less statistical error. The methods implemented in this package are described in Graczyk et al. (2022) doi:10.1214/22-AOS2174. Documentation about 'gips' is provided via its website at https://przechoj.github.io/gips/ and the paper by Chojecki, Morgen, Kołodziejek (2025, doi:10.18637/jss.v112.i07).

Changes in 1.3.0

Multi-sample support

gips() now accepts a **list of covariance matrices** and a vector of sample

sizes, enabling Bayesian model selection with a shared permutation symmetry

across G independent groups:

```r

g <- gips(list(S1, S2, S3), c(n1, n2, n3))

g_MAP <- find_MAP(g, optimizer = "BF")

```

Each group has its own covariance matrix Sigma_g and can have its own prior

hyperparameters D_matrix_g and delta_g, but all share the same symmetry

group Gamma.

The MLE exists when min(n_g) >= n0. **All existing single-sample usage is

Show all changes in 1.3.0Hide the rest of the changes in 1.3.0

fully unchanged**.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.8 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-29
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.3.0
READMEYes · 730 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.3.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JSS article
Help pages
19
Examples that run
100%19 run in a plain check (4 of them under a condition)
Exported functions with examples
100%
Documented parameters
93%
Return-value docs
100%
Help pages citing references
26%

Downloads

7.8K
CRAN downloads in the past year
Rank #5,345 · ~22/day · ~654/mo
Daily download trend is not available in this view yet.
43730 days
1.6K90 days
7.8K1 year
Compare downloads with other packages →
Also on131 r2u2 autocran

Repository

10Stars
2Forks
10Open issues
0Open PRs
7Releases
739Commits
8Commit identities
machine-learningnormal-distributionrr-packagecovariance-estimation
License file reads as GPL-3.0 · 739 commits · Last activity 2026-07-25 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
98%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-02 · 92026-07-26 · 10
PracticesBeta

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

Checks run against github.com/przechoj/gips on 2026-10-25.

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 (4)
README.Rmdpkgdown

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

pkgdown site last built 2026-07-25, before release 1.3.0 (2026-07-26)

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 1 practice
CRAN release process (2)
cran-comments.mdrevdep/
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing gips adds 16 packages (9 with compiled code, 19 MB of source tarballs). Heaviest: stringi 11 MB, Rcpp 1.8 MB, rbibutils 1.1 MB.

Depends (1)
R >= 3.5.0
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (3)
Author, Maintainer since 1.0.0 (2022)
Listed in earlier versions (2)
Przemysław Chojecki
no longer listed · 1.0.0
Adam Przemysław
no longer listed · 1.2.0 to 1.3.0
Releases (5)

Pick two releases to compare their code metrics.

  • 1.3.0Latest
    record
    2026-07-26 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.3
    record
    2025-03-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.1
    record
    2023-08-13 · diff ↗
  • 1.2.0
    record
    2023-08-07 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    record
    2022-10-13
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-10-13
Total releases
5 / 4 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Download size
873 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("gips")

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

It points to 10.18637/jss.v112.i07.

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 gips version 1.3.0 [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