
Load and Process Personal Consumption Expenditures (PCE) Inflation Data
Source:R/getPCEInflation.R
getPCEInflation.RdDownloads and processes BEA NIPA data to compute Personal Consumption Expenditures (PCE) price indices with weights and growth measures. This is the Federal Reserve's preferred inflation measure.
Arguments
- frequency
Character string indicating the frequency of the data:
"M"(monthly, the default) or"Q"(quarterly). Also sets the compounding used to annualizeWDataValue_P1a(12 for monthly, 4 for quarterly).- NIPA_data
Optional data frame. If provided, it will be used as the raw NIPA dataset instead of loading fresh data with
getNIPAFiles(). Make surefrequencymatches the frequency of the supplied data, since it determines the annualization exponent.
Value
A tibble with one row per (date, PCE component), containing the
columns from getNIPAFiles for price-index table
"U20404" (including date, SeriesLabel, and the price
index in Value), plus:
- PCEweight
Nominal consumption share: component spending divided by total PCE (both from table
"U20405").- quantity
Real quantity index from table
"U20403".- DataValue_P1
1-period percent change in the price index (decimal).
- DataValue_P3
3-period percent change (decimal).
- DataValue_P6
6-period percent change (decimal).
- WDataValue_P1
Contribution to 1-period PCE inflation:
DataValue_P1times the laggedPCEweight.- WDataValue_P1a
WDataValue_P1annualized by compounding over the periods per year implied byfrequency:(1 + x)^12 - 1for monthly,(1 + x)^4 - 1for quarterly.
Details
The function performs the following steps:
Loads NIPA data using
getNIPAFiles(or uses pre-loaded data).Extracts total PCE from table
"U20405"(series code"DPCERC").Computes PCE component weights as the nominal consumption share (component value divided by total PCE).
Extracts quantity indices from table
"U20403".Loads price indices from table
"U20404", joins weights and quantities, and calculates period-over-period growth measures.