Price Index Aggregation
Overview
Most price indexes are made with a two-step procedure, where period-over-period elementary indexes are first calculated for a collection of elementary aggregates at each point in time, and then aggregated according to a price index aggregation structure. These indexes can then be chained together to form a time series that gives the evolution of prices with respect to a fixed base period. This package contains a collection of functions that revolve around this work flow, making it easy to build standard price indexes, and implement the methods described by Balk (2008, doi:10.1017/CBO9780511720758), von der Lippe (2007, doi:10.3726/978-3-653-01120-3), and the CPI manual (2020, doi:10.5089/9781484354841.069) and PPI manual (2004, doi:10.5089/9781589063044.069) for bilateral price indexes.
Significant changes
- License has changed from MIT to GPL (>= 3).
- Bumped minimum version of R to >= 4.4.
- Code is now hosted on codeberg.
Improvements
- Replacing index values is now faster.
- It is now possible to duplicate levels/time periods when subscripting an index
by passing a named vector with new level/time periods levels. See
vignette("multiple-dimensions") for an example of how this can be useful.
- The Matrix package is no longer a hard dependency.
- Added a
lag()method for index objects.
Bug fixes
Show all changes in 0.11.0Hide the rest of the changes in 0.11.0
- Tables in vignettes are now rendered correctly.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 46 (1 internal)includes a package overview page
- Examples that run
- 100%38 run in a plain check
- Exported functions with examples
- 85%
- Documented parameters
- 93%
- Return-value docs
- 100%
- Help pages citing references
- 26% with a bibliography file
- Getting started with piar
- Adjusting annual weights
- Aggregating across baskets
- Aggregating across dimensions
- Aggregating over subperiods
- Contributions
- Decomposing price indexes HTML
- Imputation
- Index-number formulas
- Matrix aggregation
Show 3 moreHide 3 vignettes
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- GitHub only
- Median days to close, 50 most recently updated closed PRs
- GitHub only
Stars over time
Issues over time
PRs over time
- github.com/marberts/piar · last recorded on 2026-10-11
Repository codeberg.org/marberts/piar is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing piar adds no packages beyond those that come with R.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.11.0Latest2026-10-12 · current release · diff ↗ ·
listed once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-12 01:57 UTC, so it stayed less than the time between readings. - 0.10.12026-07-30 · diff ↗ ·
added 12 exports
back_period, emean, geks_index, gmean, hb_transform, nested_gmean, outliers, scale_weights, splice_index, transmute_weights, transmute_weights2, update_weights - 0.9.0
- RR 4.6.0 released · 2026-04-24
- 0.8.32025-09-17 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.8.22025-03-19 · diff ↗ ·
added 8 exports
contrib<-, elementary_index, set_contrib, set_contrib_from_index, set_levels, set_time, set_weights, split_classification - 0.8.12024-09-12 · diff ↗ ·
removed 2 exports
carry_backwards, is_aggregate_indexadded 4 exports
carry_backward, contrib2DF, interact_classifications, ntime - RR 4.4.0 released · 2024-04-24
- 0.7.02024-03-08 · diff ↗
- 0.6.0
- 0.5.02023-08-10 · diff ↗ ·
removed 1 export
is_chain_indexadded 3 exports
as_aggregation_structure, is_aggregation_structure, weights<- - RR 4.3.0 released · 2023-04-21
- 0.4.0
- RR 4.2.0 released · 2022-04-22
- 0.3.22022-02-07
Show 1 earlier eventHide 1 earlier event
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-07
- Total releases
- 11 / 4 yrs
- License
- GPL (>= 3) OSI · relicensed from MIT + file LICENSE in 0.11.0
- Minimum R
- ≥ 4.4
- Bundled data
- 1.3 KB / 4 files
- Download size
- 281 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("piar")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.06781.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.