# AnSchorfheide() example model in DSGE.jl

**URL:** https://discourse.julialang.org/t/anschorfheide-example-model-in-dsge-jl/49872
**Category:** Finance and Economics
**Created:** [November 9, 2020, 9:38pm UTC](https://discourse.julialang.org/t/anschorfheide-example-model-in-dsge-jl/49872 "2020-11-09T21:38:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![caiodantas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/caiodantas/32/210905_2.png) [@caiodantas](https://discourse.julialang.org/u/caiodantas)
#### Post date: [November 9, 2020, 9:38pm UTC](https://discourse.julialang.org/t/anschorfheide-example-model-in-dsge-jl/49872/1 "2020-11-09T21:38:38Z")

</div>

I am trying to estimate the AnSchorfheide() example model in DSGE.jl, but after the Metropolis-Hastings algorithm is executed I get the message:

```julia
ERROR: LoadError: UndefVarError: load_draws not defined
Stacktrace:
 [1] moment_tables(::AnSchorfheide{Float64}; percent::Float64, subset_inds::UnitRange{Int64}, subset_string::String, groupings::Dict{String,Array{Parameter,1}}, tables::Array{Symbol,1}, caption::Bool, outdir::String, verbose::Symbol, use_mode::Bool) at C:\Users\Samsung\.julia\packages\DSGE\tJSkz\src\analysis\moments.jl:199
 [2] moment_tables(::AnSchorfheide{Float64}) at C:\Users\Samsung\.julia\packages\DSGE\tJSkz\src\analysis\moments.jl:191
 [3] top-level scope at C:\Users\Samsung\run_default2.jl:50
 [4] include(::String) at .\client.jl:457
 [5] top-level scope at none:1
in expression starting at C:\Users\Samsung\run_default2.jl:50

```

Before the MH algorithm I’m also getting the following warning multiple times:

```julia
┌ Warning: Indeterminacy: 1 loose endogenous error(s)
└ @ DSGE C:\Users\Samsung\.julia\packages\DSGE\tJSkz\src\solve\gensys.jl:188

```

I did not make any alterations to the model’s code and I’m running it by entering “include(run\_default.jl)”. Strangely, I’ve had no problems running Model990().

The code for the model I’m trying to run is in  
[https://github.com/FRBNY-DSGE/DSGE.jl/tree/master/src/models/representative/an\_schorfheide](https://github.com/FRBNY-DSGE/DSGE.jl/tree/master/src/models/representative/an_schorfheide)

run\_default.jl is [https://github.com/FRBNY-DSGE/DSGE.jl/blob/master/docs/examples/run\_default.jl](https://github.com/FRBNY-DSGE/DSGE.jl/blob/master/docs/examples/run_default.jl)  
The only modification I made to it was changing Model1002() to AnSchorfheide().

Do you know how to solve this issue? Any help would be much appreciated.

---

<div class="post-metadata">

### Author: ![jlperla](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlperla/32/34332_2.png) [@jlperla](https://discourse.julialang.org/u/jlperla)
#### Post date: [November 10, 2020, 2:52am UTC](https://discourse.julialang.org/t/anschorfheide-example-model-in-dsge-jl/49872/2 "2020-11-10T02:52:22Z")

</div>

I think this is pretty specific to that package. Post an issue there, and I suspect they may be able to help. But the indeterminacy looks like an economic rather than Julia problem.
