Dear forum,
I had a question on the multiplication of values in panel data. I have a dataset containing firms with numerous observations per firm. I want to estimate the following: current Real estate value= real estate at cost * (CPI1975/CPIpurchase) * (Real estate index/ Real estate index 1975)
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. I tried to run the following code:
replace AnnualCPI=1 if purchaseRNICK>1974
replace CPIpurchase=1 if purchaseRNICK>1974
gen CPITotal=AnnualCPI/CPIpurchase
gen REITotal1975=REIfyear/REindex1975
gen Index=CPITotal*REITotal1975
However the problem Im facing is that pre 1975 STATA cannot execute the multiplication due the missing values of the Real estate index pre 1975 so I basically only get the real estate index numbers from 1975 onwards. How can I excecute the formula?
Can you guys help me?
Kind regards
ps the formula is attached as wel as the data snapshot
I had a question on the multiplication of values in panel data. I have a dataset containing firms with numerous observations per firm. I want to estimate the following: current Real estate value= real estate at cost * (CPI1975/CPIpurchase) * (Real estate index/ Real estate index 1975)
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. I tried to run the following code:
replace AnnualCPI=1 if purchaseRNICK>1974
replace CPIpurchase=1 if purchaseRNICK>1974
gen CPITotal=AnnualCPI/CPIpurchase
gen REITotal1975=REIfyear/REindex1975
gen Index=CPITotal*REITotal1975
However the problem Im facing is that pre 1975 STATA cannot execute the multiplication due the missing values of the Real estate index pre 1975 so I basically only get the real estate index numbers from 1975 onwards. How can I excecute the formula?
Can you guys help me?
Kind regards
ps the formula is attached as wel as the data snapshot
Comment