by econphd » Sun Sep 04, 2016 10:05 pm
Dear Johannes, thank you. I worked before AG type model which has a trend growth shock. I applied the same process for this but I got an error in below. I think it is related to how I declare them.
Starting MATLAB/Octave computing.
Error: File: chapter.m Line: 156 Column: 29
The expression to the left of the equals sign is not a valid target for an assignment.
Error in dynare (line 180)
evalin('base',fname) ;
Here is what I did:
// Rebuild non-stationary time series by remultiplying with A_{t} and B_{t}
log_A_0=0; //Initialize Level of Technology at t=0;
log_B_0=0; //Initialize Level of Technology at t=0;
log_A(1,1)=log_A_0; //Level of Tech. after shock in period 1
log_B(1,1)=log_B_0; //Level of Tech. after shock in period 1
// reaccumulate the non-stationary level series
for ii=1:options_.periods
Column 156: log_A(ii+1,1)+ log_B(ii+1,1)=log_A(ii,1)+log_B(ii,1);
y_nonstationary(ii+1,1) = y(ii,1)+log_A(ii,1)+log_B(ii,1);
h_nonstationary(ii+1,1) = h(ii,1)+log_B(ii,1);
c_nonstationary(ii+1,1) = c(ii,1)+log_A(ii,1)+log_B(ii,1);
w_nonstationary(ii+1,1) = w(ii,1)+log_A(ii,1)+log_B(ii,1);
y_h_nonstationary(ii+1,1) = y_h(ii,1)+log_A(ii,1)+log_B(ii,1);
i_nonstationary(ii+1,1) = i(ii,1)+log_A(ii,1)+log_B(ii,1);
end
I would really appreciate if you could provide some suggestions.
Best