Bayesian estimation: conflicting with the use of a variable name

2 views (last 30 days)
Houda on 29 Jul 2017
Hey everybody, I am runing the code of Adolfson et al (2007), and I followed the instruction in the .doc, I get figure number 4, However when I moved to the Bayesian estimation by typing SetPath then BayesianDSGE ( as in the last paragraph in the .doc) I get these errors: >> SetPath >> BayesianDSGE Excel File: EuroBaseline Current Excel Sheet: EuroBaseline Model: DSGE ??? Error: File: LogLikFunc.m Line: 57 Column: 9 "mu" previously appeared to be used as a function or command, conflicting with its use here as the name of a variable. A possible cause of this error is that you forgot to initialize the variable, or you have initialized it implicitly using load or eval.
Error in ==> LogPostFunc at 46 [LogLik,ErrFlagVal,A,B]=LogLikFunc(estparams,data,parnames,selsample,yloc,vdpibarloc,vdRbarloc,vdmuloc,rerloc,R,tfvars,ConvertAndPlot,Strategy,...
Error in ==> csminwelCon at 53 f0 = feval(fcn,x0,varargin{:});
Error in ==> OptimizationScript at 38 [fh,PostMode,gh,InvHessian,itct,fcount,exitflag] = csminwelCon(ObjFuncStr,InitVal,10^(-4)*eye(length(estparams)),[],MaxOptAlgoCrit,...
Error in ==> BayesianDSGE at 368 OptimizationScript * I will be grateful for your help Thanks in advance Houda

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!