Skip to content

Verify SGU sampling of the last 4 parameters #167

Description

@jlperla

There may not be any issues at all, but the density plots of the last 4 parameters of SGU (1st order) are especially far off - especially for dynare. We want to make sure nothing loaded in the wrong order/etc.

We should verify that there aren't any major issues here. Some of the things to verify are

  1. The ugliest ones are the rho, rho_u, rho_v, psi. As we know, the rho are the hardest to esimate so it might not even have any issues, just want to ensure that is the case.
  2. The priors are correctly centered/etc. and identical between the models. In particular, we want to make sure we don't have an accidental trasncription error on the order of some parameter somewhere.
  3. The pseudotrue is correctly defined for the DGP for both the dynare and the julia code
  4. The sampling in dynare code is storing off the values correctly (i.e. https://github.com/HighDimensionalEconLab/HMCExamples.jl/blob/main/scripts/run_dynare_samplers/sgu_1.m#L10-L13) which is storing things in the order we think it is, and consistently.
    • Keep in mind the x2 is stored without any headers. I don't think this is causing trouble, but you never know where a reordering might be occuring in dyanre? THere is a variable called parameter_names in one of the dynare output files which seems to be in this order?
  5. We convert this into a chain with https://github.com/HighDimensionalEconLab/HMCExamples.jl/blob/main/scripts/run_dynare_samplers/convert_dynare_output.jl#L5 etc. This takes in a list of parameters in order - which seems to match https://github.com/HighDimensionalEconLab/HMCExamples.jl/blob/main/scripts/run_dynare_samplers/convert_dynare_output.jl#L69

As I said, I can't find anything wrong which would lead to things loading the chain in the wrong order. But we should be dilligent before we declare dynare especeially horrible. If anything is wrong, my prior is on the priors and either there definition or connection to a DGP.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions