Now, I'm completely confused. You already have the purchase cost in nominal dollars for the year of purchase in the original data set. That doesn't require any indexing or adjustments at all: it's in the data set as fatb, fatc, and fatp.
The usual application of price indices that I am accustomed to is to convert from those nominal prices to prices in some reference year (typically the current year or something fairly recent) so that comparisons can be made at constant value. Moreover, that is what I understood you to mean in #1 when you said
That is what the code in #12 does.
Apparently you are being asked to do something else, and I can't make any sense of itl. I'm sorry I have nothing more to offer here. There are a number of econometricians on the forum, and perhaps one of them will recognize what you are trying to do and can help.
The usual application of price indices that I am accustomed to is to convert from those nominal prices to prices in some reference year (typically the current year or something fairly recent) so that comparisons can be made at constant value. Moreover, that is what I understood you to mean in #1 when you said
So to basically if the building was bought pre 1975 I would use the CPI index ratio to inflate the real estate value at cost to 1975 and from then I would inflate it by the real estate index.
Apparently you are being asked to do something else, and I can't make any sense of itl. I'm sorry I have nothing more to offer here. There are a number of econometricians on the forum, and perhaps one of them will recognize what you are trying to do and can help.
Comment