From 7f4e03d8f4aa1e5233bb44467d505b7ebb11b951 Mon Sep 17 00:00:00 2001 From: MichelJuillard Date: Mon, 18 Sep 2023 16:30:39 +0200 Subject: [PATCH] WIP fix estimated_parameters --- src/estimation/estimated_parameters.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/estimation/estimated_parameters.jl b/src/estimation/estimated_parameters.jl index 3e54658c..6348a45b 100644 --- a/src/estimation/estimated_parameters.jl +++ b/src/estimation/estimated_parameters.jl @@ -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!( @@ -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