Multi-Resolution Scanning for Cross-Sample and Cross-Group Differences
Overview
Implements the multi-resolution scanning (MRS) method for cross-sample distribution comparisons, as described in Soriano and Ma (2017) doi:10.1111/rssb.12180, and the analysis of distributional variation (ANDOVA) method for cross-group comparisons introduced in Ma and Soriano (2018) doi:10.1080/10618600.2017.1402774. Both methods use nonparametric models on multi-resolution partition trees to detect and characterize differences among distributions, with tools for visualizing the results.
- Standardized reproducibility seeds across examples, demos, tests, and archived simulation scripts to
12345. - Consolidated the former standalone examples into three non-redundant, reproducible visual demos. They cover one-dimensional Bayesian FDR, observed-versus-shuffled two-dimensional scans, pooled versus replicate-aware fitting across small, medium, and large replicate counts, both ANDOVA integration methods, baseline effects, and representative multiresolution trees.
- Restored current CRAN metadata and registered all native routines.
- Replaced deprecated Armadillo index-returning
max()calls and fixed an uninitialized-variable path in the C++ tree traversal. - Added input validation that prevents invalid dimensions, labels, bounds, and tuning parameters from reaching the C++ core.
Show all changes in 1.3.2Hide the rest of the changes in 1.3.2
- Restored the version 1.2.6 ANDOVA midpoint-quadrature default; deterministic and randomized compatibility suites now reproduce legacy numerical and tree results.
- Preserved the legacy default sample-space bounds for ordinary data while safely supporting constant and non-positive dimensions.
- Documented posterior sampling, effect-size baselines, numerical integration, and Bayesian-FDR plotting introduced on the development branch.
- Fixed posterior sample matrix shaping and direction probabilities, multidimensional sampling, sampling without a representative tree, Bayesian-FDR matrix indexing, and a Riemann-quadrature second-moment error.
- Kept sampled ANDOVA probabilities inside their valid domain and removed undefined behavior in dyadic bin conversion and region reconstruction.
- Added numerical compatibility, posterior-sampling, invariant, validation, plotting, and native-routine regression tests.
- Removed the unused
optimxdependency and replaced the igraph-backed representative-tree renderer with a deterministic base-graphics renderer. - Added explicit return-value documentation for all exported plotting and print methods, including the meaning of their graphical or printed side effects.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-07-23
Documentation
- Help pages
- 8
- Examples that run
- 100%7 run in a plain check
- Exported functions with examples
- 83%
- Documented parameters
- 92%
- Return-value docs
- 100%
- Help pages citing references
- 88%
Also includes 3 demo scripts (run with demo())
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- not measured
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/mastatlab/mrs on 2026-10-18.
Dependencies
Installing MRS adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
People & History
Previously maintained by Jacopo Soriano (1.0 to 1.2.3).
Pick two releases to compare their code metrics.
- unarchivedReturned to CRAN2026-07-22
- 1.3.2Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- archivedRemoved from CRAN2025-02-03issues were not corrected in time UBSAN error at https://www.stats.ox.ac.uk/pub/bdr/M1-SAN/MRS/
- RR 4.4.0 released · 2024-04-24
- 1.2.62023-12-11 · diff ↗
- 1.2.52023-12-09 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 1.2.42018-01-23 · diff ↗
- 1.2.32018-01-07 · diff ↗
Show 9 earlier eventsHide 9 earlier events
Package metadata
- First published
- 2015-12-07
- Total releases
- 11 / 11 yrs
- License
- GPL (>= 3) OSI
- Download size
- 44 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MRS")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.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.