Package: piar 0.8.1.9008
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, <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.
Authors:
piar_0.8.1.9008.tar.gz
piar_0.8.1.9008.zip(r-4.5)piar_0.8.1.9008.zip(r-4.4)piar_0.8.1.9008.zip(r-4.3)
piar_0.8.1.9008.tgz(r-4.4-any)piar_0.8.1.9008.tgz(r-4.3-any)
piar_0.8.1.9008.tar.gz(r-4.5-noble)piar_0.8.1.9008.tar.gz(r-4.4-noble)
piar_0.8.1.9008.tgz(r-4.4-emscripten)piar_0.8.1.9008.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')) |
Bug tracker:https://github.com/marberts/piar/issues
- fs_prices - Price data
- fs_weights - Price data
- ms_prices - Price data
- ms_weights - Price data
economicsinflationofficial-statisticsstatistics
Last updated 1 days agofrom:3fe2205276. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 21 2024 |
R-4.5-win | OK | Nov 21 2024 |
R-4.5-linux | OK | Nov 21 2024 |
R-4.4-win | OK | Nov 21 2024 |
R-4.4-mac | OK | Nov 21 2024 |
R-4.3-win | OK | Nov 21 2024 |
R-4.3-mac | OK | Nov 21 2024 |
Exports:aggregation_structureas_aggregation_structureas_indexcarry_backwardcarry_forwardchaincontribcontrib<-contrib2DFelemental_indexelementary_indexexpand_classificationinteract_classificationsis_aggregation_structureis_chainable_indexis_direct_indexis_indexntimeprice_relativerebaseset_contribset_levelsset_timeset_weightsshadow_pricetime<-unchainweights<-
Adjusting annual weights
Rendered fromadjust-weights.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-11-10
Started: 2024-11-09
Aggregating across baskets
Rendered frommultiple-baskets.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Aggregating across dimensions
Rendered frommultiple-dimensions.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Contributions
Rendered fromcontributions.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Imputation
Rendered fromimputation.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Index-number formulas
Rendered fromindex-number-formulas.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Making price indexes
Rendered frompiar.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-11-09
Started: 2023-06-29
Matrix aggregation
Rendered frommatrix-aggregation.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Multiple sources of data
Rendered frommultiple-data-sources.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Superlative aggregation
Rendered fromsuperlative-aggregation.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-10-27
Started: 2024-10-27
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Extract and replace index values | [.piar_index [<-.piar_index |
Aggregate elemental price indexes | aggregate.chainable_piar_index aggregate.direct_piar_index aggregate.piar_index |
Make a price index aggregation structure | aggregation_structure piar_aggregation_structure |
Coerce to an aggregation structure | as_aggregation_structure as_aggregation_structure.data.frame as_aggregation_structure.default as_aggregation_structure.matrix |
Coerce to a price index | as_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 form | as.data.frame.piar_index as.matrix.piar_index |
Coerce an aggregation structure into a tabular form | as.data.frame.piar_aggregation_structure as.matrix.piar_aggregation_structure |
Chain and rebase a price index | chain chain.chainable_piar_index chain.default rebase rebase.default rebase.direct_piar_index unchain unchain.default unchain.direct_piar_index |
Extract percent-change contributions | contrib contrib.piar_index contrib2DF contrib2DF.piar_index contrib<- contrib<-.piar_index set_contrib |
Cut an aggregation structure | cut.piar_aggregation_structure |
Make elemental/elementary price indexes | elemental_index elemental_index.data.frame elemental_index.default elemental_index.numeric elementary_index |
Expand a hierarchical classification | expand_classification interact_classifications |
Return the first/last parts of an index | head.piar_index tail.piar_index |
Impute missing prices | carry_backward carry_backward.data.frame carry_backward.default carry_forward carry_forward.data.frame carry_forward.default impute_prices shadow_price shadow_price.data.frame shadow_price.default |
Test if an object is an aggregation structure | is_aggregation_structure |
Test if an object is a price index | is_chainable_index is_direct_index is_index |
Missing values in a price index | anyNA.piar_index is.na.piar_index |
Get the levels for an aggregation structure | levels.piar_aggregation_structure |
Get the levels for a price index | levels.piar_index levels<-.piar_index set_levels |
Aggregate a price index over subperiods | mean.chainable_piar_index mean.direct_piar_index mean.piar_index |
Merge price indexes | merge.chainable_piar_index merge.direct_piar_index merge.piar_index |
Price index objects | chainable_piar_index direct_piar_index piar_index |
Price data | fs_prices fs_weights ms_prices ms_weights price_data |
Calculate period-over-period price relatives | price_relative price_relative.data.frame price_relative.default |
Split an index into groups | split.piar_index split<-.piar_index |
Stack price indexes | stack.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 index | end.piar_index ntime set_time start.piar_index time.piar_index time<- time<-.piar_index |
Update an aggregation structure | update.piar_aggregation_structure |
Get the weights for an aggregation structure | set_weights weights.piar_aggregation_structure weights<- weights<-.piar_aggregation_structure |
Index window | window.piar_index window<-.piar_index |