# How does one interpret the output of using a s() term in brms?

**URL:** <https://discourse.mc-stan.org/t/how-does-one-interpret-the-output-of-using-a-s-term-in-brms/22426>\
**Category:** brms\
**Tags:** interpret-results\
**Created:** [May 11, 2021, 6:04pm UTC](https://discourse.mc-stan.org/t/how-does-one-interpret-the-output-of-using-a-s-term-in-brms/22426 "2021-05-11T18:04:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jd\_c](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jd_c/32/16759_2.png) [@jd\_c](https://discourse.mc-stan.org/u/jd_c)\
**Post date:** [May 12, 2021, 5:34pm UTC](https://discourse.mc-stan.org/t/how-does-one-interpret-the-output-of-using-a-s-term-in-brms/22426/2 "2021-05-12T17:34:50Z")

</div>

I found this helpful [article](https://www.tjmahr.com/random-effects-penalized-splines-same-thing/), so I will try to answer this myself. Hopefully someone like @ucfagls will chime in if I am wrong.

sds(stime\_1) is the sd of the smooth weights (spline coefficients). This determines the amount of ‘wiggliness’, in an analogous way to how the sd of group-level effects in a varying slopes and intercepts model determine the amount of variability among groups in slopes and intercepts. However, the actual numeric value of the sds() is not very practically interpretable, because thinking about the variance of smooth weights for any given data and model seems abstract to me. However, if the  
value is around zero, then this is like ‘complete-pooling’ of the basis functions, which means that there isn’t much added value of more than a single basis function.

stime\_1 is the unpenalized weight (ie coefficient) for one of the “natural” parameterized basis functions. The rest of the basis functions are like varying effects. Again, because the actual numeric value of stimes\_1 is the value for the unpenalized coefficient for one of the basis functions, this wouldn’t seem to have a lot of practically interpretable meaning just from viewing this number.

**Follow-up question** - what if I have longitudinal data for 300 participants, with multiple data points per participant, where I would like to fit a spline. Does doing something like `brm(outcome ~ s(time) + (time|id)` make any sense? If so, how does the varying linear slope for time relate to the s(time)? I would like a varying slopes model, but if it isn’t linear, is there a varying splines model? I don’t think `(s(time)|id)` can be fit in brms, if I remember, and I am also not sure it makes much sense…

Again, any help is appreciated, and hopefully I have answered my original question correctly and don’t lead anyone else astray! Please correct if I am wrong.

Edit - also, still not sure about the y-axis on the conditional\_smooths() plot…

---

_[View the full topic](https://discourse.mc-stan.org/t/how-does-one-interpret-the-output-of-using-a-s-term-in-brms/22426)._
