Moments calc by different methods do not match?

Hello,
I am running Dynare 4.4.3 stoch_simul with option periods.
Then I compare correlation between two variables calculated with data in oo_.var
and compare the corr coef with that calculated with oo_.endo_simul.
For example:
and
Since I am using periods option, both oo_.var & oo_.endo_simul contain simulated data but I obtain significantly different results (for some series the difference is about 0.2).
Am I missing anything?
I am running Dynare 4.4.3 stoch_simul with option periods.
Then I compare correlation between two variables calculated with data in oo_.var
and compare the corr coef with that calculated with oo_.endo_simul.
For example:
- Code: Select all
oo_.var(2,1)/(sqrt(oo_.var(2,2)) * sqrt(oo_.var(1,1)))
and
- Code: Select all
corrcoef(oo_.endo_simul(2,:),oo_.endo_simul(1,:))
Since I am using periods option, both oo_.var & oo_.endo_simul contain simulated data but I obtain significantly different results (for some series the difference is about 0.2).
Am I missing anything?