# question on longitudinal linear-mixed-effect results summary

**URL:** <https://forum.qiime2.org/t/question-on-longitudinal-linear-mixed-effect-results-summary/12369>\
**Category:** User Support\
**Tags:** linear-mixed-effects\
**Created:** [November 7, 2019, 1:49am UTC](https://forum.qiime2.org/t/question-on-longitudinal-linear-mixed-effect-results-summary/12369 "2019-11-07T01:49:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmuraoka](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/w/3d9bf3/32.png) [@wmuraoka](https://forum.qiime2.org/u/wmuraoka)\
**Post date:** [November 7, 2019, 1:49am UTC](https://forum.qiime2.org/t/question-on-longitudinal-linear-mixed-effect-results-summary/12369/1 "2019-11-07T01:49:15Z")

</div>

Hello Qiime2 team,

I have a question about the summary output of the longitudinal linear-mixed-effects plugin. Below is the command that I entered and attached are the metadata.tsv and the first-distances.qza files. I am using qiime2019.1 (conda environ in Ubuntu 18).

qiime longitudinal linear-mixed-effects --m-metadata-file metadata.tsv --m-metadata-file weighted-firstdist.qza --p-state-column StudyDayN --p-individual-id-column pig --p-formula "Distance ~ StudyDayN\*StudyGroup" --o-visualization weighted-lme.qzv --p-metric Distance

I am trying to analyze the first distances with StudyDayN and StudyGroup as fixed effects. The pig column is the id of the sample, StudyDayN is the longitudinal factor, StudyGroup is another fixed factor. After running, the weighted-lme.qzv is successfully created, but the summary section of the results do not look correct. Specifically, the No. Groups and min/max/mean samples per group are not what I expected. Based on the attached metadata.tsv, I expected 10 groups with a min of 5 per group, max of 6 per group and mean of \>5 per group. But the results summary has No. Groups as 27 and min/max as 1/2, respectively. Is my formula or individual-id not identified correctly?

[weighted-firstdist.qza|attachment](upload://qRih19MELzwXCI8SSqFWxPDfMDw[metadata.tsv](https://forum.qiime2.org/uploads/short-url/fhP5jw4pM67m16GW7GylZ0lh3Gr.tsv) (2.0 KB) .qza) (76.4 KB)  
[weighted-firstdist.qza](https://forum.qiime2.org/uploads/short-url/qRih19MELzwXCI8SSqFWxPDfMDw.qza) (76.4 KB)  
Thank you,  
w

---

<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:** [November 11, 2019, 2:17pm UTC](https://forum.qiime2.org/t/question-on-longitudinal-linear-mixed-effect-results-summary/12369/2 "2019-11-11T14:17:06Z")

</div>

Hi @wmuraoka,  
Good question — in the context of this test "groups" is referring not to your treatment groups but rather to the number of individuals. The min/max per group then is the number of time points.

Since you are running this on first distance results, this all makes sense: not all individuals have all 3 timepoints, so the min should be 1 and max should be 2 (not 3, since first distances is looking at the interval between successive timepoints).

I hope that helps!

---

<div class="post-metadata">

**Author:** ![wmuraoka](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/w/3d9bf3/32.png) [@wmuraoka](https://forum.qiime2.org/u/wmuraoka)\
**Post date:** [November 12, 2019, 5:45pm UTC](https://forum.qiime2.org/t/question-on-longitudinal-linear-mixed-effect-results-summary/12369/3 "2019-11-12T17:45:08Z")

</div>

Hello! Thank you very much for clarifying. This makes sense now with your explanation.

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [December 13, 2019, 11:45pm UTC](https://forum.qiime2.org/t/question-on-longitudinal-linear-mixed-effect-results-summary/12369/4 "2019-12-13T23:45:12Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
