CPI dataset from BLS I hope this question is not inconvenient for any of you, so I would appreciate if you do not mark it as not useful.
I want to work with the data of the CPI from the BLS (I am not American, and this is the first time I am using the BLS). I want to ask where I can find the raw data and the relative importance of components. My goal is to build some aggregate categories of my own.
Also, I would like to know if there exists any R script or Stata do file that explains how to build the CPI.
Thank you in advance for your help.
The BLS details the construction of the CPI Index in detail here
Moreover, you can find some notes on methodology changes here
You may find the package IndexNumR in R useful for index number calculation, you can find the documentation here