# Errors when solving the model to 3third order

**URL:** https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187
**Category:** Replication Attempts
**Created:** [29 March 2023 21:18 UTC](https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187 "2023-03-29T21:18:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thomaswade](https://forum.dynare.org/user_avatar/forum.dynare.org/thomaswade/32/16057_2.png) [@thomaswade](https://forum.dynare.org/u/thomaswade)
#### Post date: [29 March 2023 21:18 UTC](https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187/1 "2023-03-29T21:18:51Z")

</div>

Hi all,

I tried running the replication package I downloaded from Brent Bundick’s website (Basu and Bundick 2017).

An error message popped out:  
_Not enough input arguments._

In the sss.m file, line 37, called ‘simult\_’ and ‘simult\_’ function requires 6 arguments, but in the sss.m file, only 4 are given. So I fix this problem by giving ‘simult\_’ full 6 arguments (it misses the first two: M\_ and options\_).

But another error showed:  
\*Error using assignin \*  
_Must be a text scalar._  
_Error in bbeffectivedemand.driver (line 603)_  
_assignin(‘base’,[deblank(M\_.endo\_names(ivariable,:)) ‘\_sss’],…_

I guess it should be the ‘{}’ instead of ‘()’ when appending the string : deblank(M\_.endo\_names{ivariable,:})

But this file (bbeffectivedemand.driver) seems to be generated during the processing; next time, this error is still there.

I’m just wondering if these errors are due to me using the wrong version of the dynare, which is not compatible with Matlab (matlab version: 2021a and I tried dynare 4.8, 5.1, 5.4). My laptop is macOS big sur. I don’t know if this issue is specific to models solved to the 3 order (requires the stochastic ss file-sss.m)?

Any suggestions for this issue? Thanks in advance!

Sincerely,  
Thmoas

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [30 March 2023 13:53 UTC](https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187/2 "2023-03-30T13:53:44Z")

</div>

You need to find out which Dynare version they used, most probably 4.5.7. Later versions are not compatible with their codes. Their base model for newer versions is at [DSGE\_mod/Basu\_Bundick\_2017 at master · JohannesPfeifer/DSGE\_mod · GitHub](http://github.com/JohannesPfeifer/DSGE_mod/tree/master/Basu_Bundick_2017)

---

<div class="post-metadata">

### Author: ![thomaswade](https://forum.dynare.org/user_avatar/forum.dynare.org/thomaswade/32/16057_2.png) [@thomaswade](https://forum.dynare.org/u/thomaswade)
#### Post date: [30 March 2023 15:49 UTC](https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187/3 "2023-03-30T15:49:58Z")

</div>

Thank you so much, Professor Pfeifer. The BB model on your GitHub repository worked on my computer.

Sorry, I have a follow-up question: Which part of the model cause this issue: the later version Dynare unsuitable for the mod file written in the early version? Is this issue specific to the model with a user-written steady-state calculation file? Cause I use the latest Dynare (5.4) to solve the model I wrote three years ago, no errors.

Many thanks again.

Thomas

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [30 March 2023 16:10 UTC](https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187/4 "2023-03-30T16:10:27Z")

</div>

In Dyare, we aim for backward compatibility with respect to the Dynare language used in mod-files. But there are occasional changes in the function and their interface underlying Dynare.  
As documented at [BreakingFeaturesIn4.6 · Wiki · Dynare / dynare · GitLab](https://git.dynare.org/Dynare/dynare/-/wikis/BreakingFeaturesIn4.6) there was a break with user-defined steady state files when we phased out global variables and used cell arrays. The replication files rely on the use of char arrays instead of cells. That causes the biggest issues.

---

<div class="post-metadata">

### Author: ![thomaswade](https://forum.dynare.org/user_avatar/forum.dynare.org/thomaswade/32/16057_2.png) [@thomaswade](https://forum.dynare.org/u/thomaswade)
#### Post date: [30 March 2023 16:21 UTC](https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187/5 "2023-03-30T16:21:20Z")

</div>

Wow, Thank you so much. This document really helps.

Sincerely,  
TW

---

<div class="post-metadata">

### Author: ![thomaswade](https://forum.dynare.org/user_avatar/forum.dynare.org/thomaswade/32/16057_2.png) [@thomaswade](https://forum.dynare.org/u/thomaswade)
#### Post date: [30 March 2023 16:31 UTC](https://forum.dynare.org/t/errors-when-solving-the-model-to-3third-order/22187/6 "2023-03-30T16:31:16Z")

</div>

Thank you again, that document clears all me questions.

Sincerely,  
TW
