Skip to content

Commit

Permalink
WIP fix estimated_parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelJuillard committed Sep 18, 2023
1 parent 586c159 commit 7f4e03d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/estimation/estimated_parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ function parse_estimated_parameters!(context::Context, fields::Dict{String,Any})
parameters = context.work.estimated_parameters
symbol_table = context.symboltable
for p in fields["params"]
push!(parameters.symbols, Symbol(p["param"]))
@show p
push!(parameters.name, p["param"])
push!(parameters.index, symbol_table[p["param"]].orderintype)
push!(parameters.initialvalue, dynare_parse_eval(p["init_val"], context))
#=
push!(parameters.optim_lb, dynare_parse_eval(p["lower_bound"], context))
push!(parameters.optim_ub, dynare_parse_eval(p["upper_bound"], context))
push!(
Expand All @@ -68,9 +70,10 @@ function parse_estimated_parameters!(context::Context, fields::Dict{String,Any})
parameters.transformtobasic,
get_transformtobasic(Val(p["prior_distribution"]), p["3"], p["4"]),
)
# push!(parameters.mh_scale, dynare_parse_eval(p["scale"], context))
push!(parameters.mh_scale, dynare_parse_eval(p["scale"], context))
=#
push!(
parameters.distributions,
parameters.prior,
parse_prior_distribution(Val(p["prior_distribution"]), p),
)
end
Expand Down

0 comments on commit 7f4e03d

Please sign in to comment.