Hello forum members<

I have panel data for many years, and I need to adjust the Dollar value (inflation) to make it constant to a particular year. I am multiplying the variable by the deflation index. However, in 2009, the deflation index is (-0.4). When I multiply it by the variable, it gives me a negative number.

syntax: replace variable = variablexxx *-0.4 if year == 2009

I am not sure if I am doing it in the right way.

Thank you in advance
A