Skip to contents

Calculate price indexes

Functions to make elemental and aggregated price indexes

elemental_index() elementary_index()
Make elemental/elementary price indexes
as_index()
Coerce to a price index
aggregate(<chainable_piar_index>) aggregate(<direct_piar_index>)
Aggregate elemental price indexes
mean(<chainable_piar_index>) mean(<direct_piar_index>)
Aggregate a price index over subperiods

Manipulate price indexes

Helpful functions for working with price indexes

Manipulate prices

Helpful functions for working with prices

shadow_price() carry_forward() carry_backward()
Impute missing prices
price_relative()
Calculate period-over-period price relatives

Aggregation structure

Functions to make and work with price-index aggregation structures

aggregation_structure()
Make a price index aggregation structure
expand_classification() interact_classifications()
Expand a hierarchical classification
as_aggregation_structure()
Coerce to an aggregation structure
as.matrix(<piar_aggregation_structure>) as.data.frame(<piar_aggregation_structure>)
Coerce an aggregation structure into a tabular form
weights(<piar_aggregation_structure>) `weights<-`() set_weights()
Get the weights for an aggregation structure
levels(<piar_aggregation_structure>)
Get the levels for an aggregation structure
update(<piar_aggregation_structure>)
Update an aggregation structure
cut(<piar_aggregation_structure>)
Cut an aggregation structure
is_aggregation_structure()
Test if an object is an aggregation structure

Index objects

The model used to represent price indexes

Sample data