# RCode for doing biometric moderation?

**URL:** https://isgw-forum.colorado.edu/t/rcode-for-doing-biometric-moderation/883
**Category:** Day 3
**Created:** [June 10, 2026, 2:17pm UTC](https://isgw-forum.colorado.edu/t/rcode-for-doing-biometric-moderation/883 "2026-06-10T14:17:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jense180](https://isgw-forum.colorado.edu/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@jense180](https://isgw-forum.colorado.edu/u/jense180)
#### Post date: [June 10, 2026, 2:17pm UTC](https://isgw-forum.colorado.edu/t/rcode-for-doing-biometric-moderation/883/1 "2026-06-10T14:17:29Z")

</div>

I am interested in testing whether a biometric moderation model in which genetic influences on personality vary as a function of relationship satisfaction provides a better fit to the data than a model without moderation. I was wondering if anyone knew where I could find code to do this analysis or had code they would be willing to share?

---

<div class="post-metadata">

### Author: ![dmitrk02](https://isgw-forum.colorado.edu/letter_avatar_proxy/v4/letter/d/8edcca/32.png) [@dmitrk02](https://isgw-forum.colorado.edu/u/dmitrk02)
#### Post date: [June 10, 2026, 8:37pm UTC](https://isgw-forum.colorado.edu/t/rcode-for-doing-biometric-moderation/883/2 "2026-06-10T20:37:04Z")

</div>

Hi Lily,

As one of the suggestions, I would maybe try to modify the model with age moderation that was once presented at the workshop in 2022 for your goal: [https://ibg.colorado.edu/cdrom2022/day3/practicalDay3.R](https://ibg.colorado.edu/cdrom2022/day3/practicalDay3.R) if your moderation variable is continious, this probably may work.
