# Mixed effect model using lme

**URL:** <https://forum.qiime2.org/t/mixed-effect-model-using-lme/24212>\
**Category:** General Discussion\
**Tags:** linear-mixed-effects\
**Created:** [September 20, 2022, 1:42pm UTC](https://forum.qiime2.org/t/mixed-effect-model-using-lme/24212 "2022-09-20T13:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SterlingWright2016](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@SterlingWright2016](https://forum.qiime2.org/u/SterlingWright2016)\
**Post date:** [September 20, 2022, 1:42pm UTC](https://forum.qiime2.org/t/mixed-effect-model-using-lme/24212/1 "2022-09-20T13:42:59Z")

</div>

Hi All,

I am wondering if there is a way to use the lme plugin as a mixed effects model. I have independent samples from three groups. I also have continuous and categorical random and fixed effects. Any feedback on this would greatly be appreciated!

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [September 26, 2022, 10:42am UTC](https://forum.qiime2.org/t/mixed-effect-model-using-lme/24212/2 "2022-09-26T10:42:22Z")

</div>

Hi @SterlingWright2016 ,

Yes, LME is a mixed effects model, and both fixed effects and random effects can be specified. Please see the help documentation for the action for more details on how to use this, or this tutorial:  
[https://docs.qiime2.org/2022.8/tutorials/longitudinal/#linear-mixed-effect-models](https://docs.qiime2.org/2022.8/tutorials/longitudinal/#linear-mixed-effect-models)

Good luck!
