Package: piar 0.8.0

piar: Price Index Aggregation

Most price indexes are made with a two-step procedure, where period-over-period elemental indexes are first calculated for a collection of elemental 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, ISBN:978-1-107-40496-0), von der Lippe (2001, ISBN:3-8246-0638-0), and the CPI manual (2020, ISBN:978-1-51354-298-0) for bilateral price indexes.

Authors:Steve Martin [aut, cre, cph]

piar_0.8.0.tar.gz
piar_0.8.0.zip(r-4.5)piar_0.8.0.zip(r-4.4)piar_0.8.0.zip(r-4.3)
piar_0.8.0.tgz(r-4.4-any)piar_0.8.0.tgz(r-4.3-any)
piar_0.8.0.tar.gz(r-4.5-noble)piar_0.8.0.tar.gz(r-4.4-noble)
piar_0.8.0.tgz(r-4.4-emscripten)piar_0.8.0.tgz(r-4.3-emscripten)
piar.pdf |piar.html
piar/json (API)
NEWS

# Install piar in R:
install.packages('piar', repos = c('https://marberts.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/marberts/piar/issues

Datasets:

On CRAN:

economicsinflationofficial-statisticsstatistics

21 exports 2 stars 2.60 score 3 dependencies

Last updated 2 months agofrom:e418823974ac3440fb97a390f68d2acfc2732108

Exports:aggregation_structureas_aggregation_structureas_indexcarry_backwardscarry_forwardchaincontribelemental_indexexpand_classificationinteract_classificationsis_aggregation_structureis_chainable_indexis_direct_indexis_indexntimeprice_relativerebaseshadow_pricetime<-unchainweights<-

Dependencies:gpindexlatticeMatrix

Making price indexes

Rendered frompiar.Rmdusingknitr::rmarkdownon May 18 2024.

Last update: 2024-04-17
Started: 2023-06-29

Readme and manuals

Help Manual

Help pageTopics
Extract and replace index values[.piar_index [<-.piar_index
Aggregate elemental price indexesaggregate.chainable_piar_index aggregate.direct_piar_index aggregate.piar_index
Make a price index aggregation structureaggregation_structure piar_aggregation_structure
Coerce to an aggregation structureas_aggregation_structure as_aggregation_structure.data.frame as_aggregation_structure.default as_aggregation_structure.matrix
Coerce to a price indexas_index as_index.chainable_piar_index as_index.data.frame as_index.default as_index.direct_piar_index as_index.matrix
Coerce an index into a tabular formas.data.frame.piar_index as.matrix.piar_index
Coerce an aggregation structure into a tabular formas.data.frame.piar_aggregation_structure as.matrix.piar_aggregation_structure
Chain and rebase a price indexchain chain.chainable_piar_index chain.default rebase rebase.default rebase.direct_piar_index unchain unchain.default unchain.direct_piar_index
Extract percent-change contributionscontrib contrib.piar_index
Make elemental price indexeselemental_index elemental_index.default elemental_index.numeric
Expand a hierarchical classificationexpand_classification interact_classifications
Return the first/last parts of an indexhead.piar_index tail.piar_index
Impute missing pricescarry_backwards carry_forward impute_prices shadow_price
Test if an object is an aggregation structureis_aggregation_structure
Test if an object is a price indexis_chainable_index is_direct_index is_index
Missing values in a price indexanyNA.piar_index is.na.piar_index
Get the levels for an aggregation structurelevels.piar_aggregation_structure
Get the levels for a price indexlevels.piar_index levels<-.piar_index
Aggregate a price index over subperiodsmean.chainable_piar_index mean.direct_piar_index mean.piar_index
Merge price indexesmerge.chainable_piar_index merge.direct_piar_index merge.piar_index
Price index objectschainable_piar_index direct_piar_index piar_index
Price datafs_prices fs_weights ms_prices ms_weights price_data
Calculate period-over-period price relativesprice_relative
Split an index into groupssplit.piar_index split<-.piar_index
Stack price indexesstack.chainable_piar_index stack.direct_piar_index stack.piar_index unstack.chainable_piar_index unstack.direct_piar_index
Get the time periods for a price indexend.piar_index ntime start.piar_index time.piar_index time<- time<-.piar_index
Update an aggregation structureupdate.piar_aggregation_structure
Get the weights for an aggregation structureweights.piar_aggregation_structure weights<- weights<-.piar_aggregation_structure
Index windowwindow.piar_index window<-.piar_index