Relative Content

Tag Archive for rstudioeconomics

Plotting TFP over time

I am using R-Studio to plot productivity (TFP) growth in the German manufacturing sector over time, however, I am not sure if I do it correctly, because in one subsector, the graph shows high volatility.
The picture shows my graph. I am using this code:

How can I calculate the inflation rate in a new variable?

So I have this table, and I need to find the inflation rate per quarter using this data.
This is Econometrics, so I believe the formula that I have to use is this:
Inflation rate=(CPIprevious-CPIcurrent/CPIcurrent
This has to be done in a new variable called ‘Inflation Rate’.
enter image description here