5 years ago I did a similar analysis of price per part because I remember there being a big controversy around the price of the new Star Destroyer set. I analyzed price per piece but also price per gram, estimated in a few different ways. I was surprised to see that price per gram was stable through the 2010s on an inflation-adjusted basis and that it went down fairly significantly over the 1990s.
I did this before I learned how to finish projects, so it's been sitting in a private repo the whole time :)
I just made the repo public. Perhaps the author or someone else can make use of it: https://github.com/iechevarria/lego-price-analysis/
The plots and code are in this file: https://github.com/iechevarria/lego-price-analysis/blob/mast...