I have read your paper “Specifying Observation Equations” but just wanted to clarify some stuff. If my Model is RBC and variables are in levels.
Since the data I have for Consumption exhibit a trend, then de-trending the variable to align it with model variables follows the rational in King/Rebelo (1999) where the deterministic trend is defined as X_{t+1}=(1+g_y)X_t) where g_y is the growth rate of Y and is equivalent to (1+g) (1+n). Then, Y_{model_t}=Y_{observed_t}/X_t.
This rationale is what Dynare does by only declaring g_Y as the growth rate for C without specifying anything about X_t ? That is:
observation_trends; C (g_y); end;
g_y should be calculated from data as a long term average of growth rate of Y ? That is, g_y = mean(log(Y_t) - log(Y_{t-1})) ? right ?
means that C has a linear trend with growth rate g_y. In most cases, you actually want
observation_trends;
log_C (g_y);
end;
because you want the logarithm to have an linear trend, which means the level has an exponential trend.
Yes, you many want to compute the average growth rate over the sample.
One more clarrification if you may. My understanding that DSGE models are stationarized growth models by dividing by X_t where X_{t+1}=(1+g_y) X_t following King & Rebelo (1999).
If X_0 = 1, then X_t=(1+g_y)^t and C_t/X_t is detrended given that my variables in the RBC model are in level. Therefore, why I need to impose an exponential trend form and what is the rationale behind imposing an exponential trend ?
In case we opt for an exponential trend, then all we need to add in the model bloc is log_C=log(C) ?
detrends models variable’s, which is not what I am after. The context that I am referring to is the following:
If my model is stationary (as in King and Rebello 1999) i.e. I am starting with de-trended variables but when I collect the data, my observed variables (C per se) is trending then:
Is there a Dynare command that detrend only the observed data using a trend that I specify i.e (g_y) within Dynare ? . All I need is tell Dynare that my model is stationary but my data is trending using a specified trend.
2 . One way to do so is to detrend (deflate) my data manually using HP filter or dividing it by (1+g_y)^t for t=0,1, … before feeding the data in Dynare. Right ? . In this case, which method is better from your experience ? HP or a constant trend (1+g_y)^t ?
Which one tells Dynare that my observed variable C has a deterministic trend so that Dynare detrend the data as per above discussion ? Please note that I have added an auxiliary variable log_C=log(C) as an equation in the model.