# Option "smoother" with estimation

**URL:** https://forum.dynare.org/t/option-smoother-with-estimation/6153
**Category:** Dynare help (legacy posts)
**Created:** [19 April 2017 15:03 UTC](https://forum.dynare.org/t/option-smoother-with-estimation/6153 "2017-04-19T15:03:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_Boeters](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/50afbb/32.png) [@Stefan\_Boeters](https://forum.dynare.org/u/Stefan_Boeters)
#### Post date: [19 April 2017 15:03 UTC](https://forum.dynare.org/t/option-smoother-with-estimation/6153/1 "2017-04-19T15:03:58Z")

</div>

You can use the option “smoother” with estimation. If you don’t have provided a list of variables after the estimation command, Dynare asks you:

“Choose one of the following options: [1] Consider all the endogenous variables. [2] Consider all the observed endogenous variables. [3] Stop Dynare and change the mod file.”

and waits for an answer. This is unhandy for batch processing. Is there a way to tell Dynare right away which option to select? (I tried “smoother = 1”, but this doesn’t work.)

---

<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: [19 April 2017 15:44 UTC](https://forum.dynare.org/t/option-smoother-with-estimation/6153/2 "2017-04-19T15:44:59Z")

</div>

Use

```auto

```

(see the manual)

---

<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: [21 April 2017 10:30 UTC](https://forum.dynare.org/t/option-smoother-with-estimation/6153/3 "2017-04-21T10:30:26Z")

</div>

Did you select variables after the estimation command? E.g.

```auto

```

---

<div class="post-metadata">

### Author: ![Stefan\_Boeters](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/50afbb/32.png) [@Stefan\_Boeters](https://forum.dynare.org/u/Stefan_Boeters)
#### Post date: [24 April 2017 12:07 UTC](https://forum.dynare.org/t/option-smoother-with-estimation/6153/4 "2017-04-24T12:07:05Z")

</div>

I’m still confused about this. The Dynare manual says:

[quote]selected\_variables\_only  
Only run the smoother on the variables listed just after the estimation command. Default: run the smoother on all the declared endogenous variables.  
[/quote]

So I thought that if I do not provide a list with variables after the estimation command, the smoother would be applied to _all_ endogenous variables. But this doesn’t seem to be the case. At least, after running “estimation” with options “smoother” and “selected\_variables\_only”, but without a list of variables, the output does not contain an oo\_.SmoothedVariables field.

---

<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: [24 April 2017 12:37 UTC](https://forum.dynare.org/t/option-smoother-with-estimation/6153/5 "2017-04-24T12:37:11Z")

</div>

If you want to have all variables, you need to use

```auto

```

And you need to use the unstable version, because that’s where this option has been introduced.

---

<div class="post-metadata">

### Author: ![Stefan\_Boeters](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/50afbb/32.png) [@Stefan\_Boeters](https://forum.dynare.org/u/Stefan_Boeters)
#### Post date: [24 April 2017 12:57 UTC](https://forum.dynare.org/t/option-smoother-with-estimation/6153/6 "2017-04-24T12:57:10Z")

</div>

OK, thanks, I’ll give it a try.
