Simple Welfare Analysis Error

Dear Prof. Pfeifer,
I am running a Iacoviello(2005-2015) type model in Dynare. I added a reserve requirement ratio. When I try to see different level of welfares for different reserve requirement ratio levels, I see an error:
Reference to non-existent field ‘mean’.

Error in loop2 (line 28)
mean.Welfare(ii)=oo_.mean(Welfare_pos);

The error shows up when I run loop2.m file below, I think this is an easy error in that .m file but I am new in dynare and couldn’t solve it. Thanks in advance for your help.
Kind Regards.
loop2.m (1.1 KB) endodeneme.mod (4.2 KB)

You are requesting nomoments, so why should the mean be computed?

1 Like