# Varying number of simulations when applying rv() to stanfit object

**URL:** <https://discourse.mc-stan.org/t/varying-number-of-simulations-when-applying-rv-to-stanfit-object/25440>\
**Category:** General\
**Tags:** communicating-results\
**Created:** [November 25, 2021, 5:16pm UTC](https://discourse.mc-stan.org/t/varying-number-of-simulations-when-applying-rv-to-stanfit-object/25440 "2021-11-25T17:16:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sina](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Sina](https://discourse.mc-stan.org/u/Sina)\
**Post date:** [November 25, 2021, 5:16pm UTC](https://discourse.mc-stan.org/t/varying-number-of-simulations-when-applying-rv-to-stanfit-object/25440/1 "2021-11-25T17:16:10Z")

</div>

I noticed that when applying the rv() function from the rv package to a stan fit object the number of simulations varies between parameters declared in the “transformed parameters” block and in the"model" block. Is there any resason for this? In contrast, applying the extract() function results in the correct number of simulations.

---

<div class="post-metadata">

**Author:** ![martinmodrak](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/martinmodrak/32/133_2.png) [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Post date:** [November 29, 2021, 5:16pm UTC](https://discourse.mc-stan.org/t/varying-number-of-simulations-when-applying-rv-to-stanfit-object/25440/2 "2021-11-29T17:16:22Z")

</div>

Unfortunately, the `rv` package is not a part of the Stan ecosystem and thus any inquiries should be aimed at its developers. I noticed @jsta has account here, but appears to be inactive, so most likely you’ll need to ask elsewhere.

---

<div class="post-metadata">

**Author:** ![Sina](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Sina](https://discourse.mc-stan.org/u/Sina)\
**Post date:** [November 30, 2021, 6:24am UTC](https://discourse.mc-stan.org/t/varying-number-of-simulations-when-applying-rv-to-stanfit-object/25440/3 "2021-11-30T06:24:54Z")

</div>

Alright, thank you!
