# Plotting Posterior Distribution of Phillips Curve Slope in Smets-Wouters Model

**URL:** <https://forum.dynare.org/t/plotting-posterior-distribution-of-phillips-curve-slope-in-smets-wouters-model/18596>\
**Category:** ML/Bayesian estimation\
**Created:** [27 July 2021 16:07 UTC](https://forum.dynare.org/t/plotting-posterior-distribution-of-phillips-curve-slope-in-smets-wouters-model/18596 "2021-07-27T16:07:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ap545](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/e79b87/32.png) [@ap545](https://forum.dynare.org/u/ap545)\
**Post date:** [27 July 2021 16:07 UTC](https://forum.dynare.org/t/plotting-posterior-distribution-of-phillips-curve-slope-in-smets-wouters-model/18596/1 "2021-07-27T16:07:46Z")

</div>

Hi All,

I am estimating quite the Smets-Wouters model using the code provided [here](https://github.com/JohannesPfeifer/DSGE_mod/tree/master/Smets_Wouters_2007). I was wondering if there was a way of plotting the posterior distribution of the Phillips curve slope, which itself is a function of a number of different parameters.

Many thanks in advance,

Andy

---

<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:** [27 July 2021 18:47 UTC](https://forum.dynare.org/t/plotting-posterior-distribution-of-phillips-curve-slope-in-smets-wouters-model/18596/2 "2021-07-27T18:47:29Z")

</div>

Instead of

```auto
prior_function

```

you can use a

```auto
posterior_function

```

See the manual.

---

<div class="post-metadata">

**Author:** ![ap545](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/e79b87/32.png) [@ap545](https://forum.dynare.org/u/ap545)\
**Post date:** [30 July 2021 09:39 UTC](https://forum.dynare.org/t/plotting-posterior-distribution-of-phillips-curve-slope-in-smets-wouters-model/18596/3 "2021-07-30T09:39:59Z")

</div>

Many thanks, that’s very helpful.

Andy
