Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -41,13 +41,10 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
extra-packages: any::rcmdcheck, local::.
needs: check

- name: install gpindex
run: pak::pkg_install("marberts/gpindex")
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
15 changes: 7 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ Description: Most price indexes are made with a two-step procedure, where
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>) for bilateral price indexes.
<doi:10.5089/9781484354841.069>) and PPI manual
(2004, <doi:10.5089/9781589063044.069>) for bilateral price indexes.
Depends: R (>= 4.1)
Imports:
Imports:
stats,
utils,
gpindex (>= 0.6.2),
Matrix (>= 1.5-0)
Suggests:
Suggests:
data.tree,
knitr,
rmarkdown,
quarto,
sps,
testthat (>= 3.0.0),
tinytest,
treemap
License: MIT + file LICENSE
Encoding: UTF-8
URL: https://marberts.github.io/piar/, https://github.com/marberts/piar
BugReports: https://github.com/marberts/piar/issues
LazyData: true
VignetteBuilder: knitr
Config/testthat/edition: 3
VignetteBuilder: quarto
Roxygen: list(markdown = TRUE)
Config/roxygen2/version: 8.0.0
11 changes: 11 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export("weights<-")
export(aggregation_structure)
export(as_aggregation_structure)
export(as_index)
export(back_period)
export(carry_backward)
export(carry_forward)
export(chain)
Expand All @@ -97,23 +98,33 @@ export(contrib2DF)
export(elemental_index)
export(elementary_index)
export(expand_classification)
export(geks_index)
export(gmean)
export(hb_transform)
export(impute_prices)
export(interact_classifications)
export(is_aggregation_structure)
export(is_chainable_index)
export(is_direct_index)
export(is_index)
export(nested_gmean)
export(ntime)
export(outliers)
export(price_relative)
export(rebase)
export(scale_weights)
export(set_contrib)
export(set_contrib_from_index)
export(set_levels)
export(set_time)
export(set_weights)
export(shadow_price)
export(splice_index)
export(split_classification)
export(transmute_weights)
export(transmute_weights2)
export(unchain)
export(update_weights)
importFrom(stats,"window<-")
importFrom(stats,aggregate)
importFrom(stats,as.ts)
Expand Down
16 changes: 15 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
# piar (development version)

## Significant changes

- Many functions from `{gpindex}` are now part of `{piar}`. This gives a somewhat
more consistent experience and allows for improvements that would be difficult with
two separate packages. In particular:

- A new function `outliers()` to find extreme price relatives.

- Functions for multilateral indexes.

- Core mathematical machinery used to aggregate indexes and make product contributions.

- A new vignette outlining some theory that unlies how indexes are calculated.

## Improvements

- `aggregate(index)` gets am experimental new argument `impute_rules` to specify specific
- `aggregate(index)` gets an experimental new argument `impute_rules` to specify specific
imputation rules during aggregation.

## Bugs fixes
Expand Down
Loading
Loading