@Gabrielr12’s answer is correct. If you want Dynare to do the work of introducing the auxiliary variable, you can use the EXPECTATION operator (see the manual):
@Gabrielr12’s answer is correct. If you want Dynare to do the work of introducing the auxiliary variable, you can use the EXPECTATION operator (see the manual):