Help looping over two parameters

You are not taking parameter dependence into account. That’s why you should use model-local variables (the ones with the pound operator) or a steady state file. See Remark 4 (Parameter dependence and the use of model-local variables) in Pfeifer (2013): “A Guide to Specifying Observation Equations for the Estimation of DSGE Models”