General linear model with repeated measures - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: General linear model with repeated measures (/thread-31266.html) |
General linear model with repeated measures - Ziv1279 - Dec-01-2020 Hi everyone, I am trying to perform a general linear model with repeated measures. I know how to do it on 'STATISTICA' but I am now starting to use Python. For example: I have an experimental groups ('exp') and a control group ('cont'). In addition, I have 2 levels: 1. side - left ('L') and right ('R') 2. front/hind - 'F' and 'H' Together they are represented as LF, RF, LH, RH. I want to compare the effect of all the combinations, for example: side*front/hind side*front/hind*exp/cont etc... I appreciate your kind help, Ziv Here is an example of my data: LF RF LH RH exp 142.549195 149.9647904 150.6805945 134.5750901 exp 149.2961487 151.4212504 153.147478 147.9843601 exp 147.6626815 144.0125037 153.8896852 133.2852889 exp 150.9760241 159.186435 137.893185 151.7904103 exp 154.4694923 154.8212891 149.0752209 140.4214101 exp 150.2702538 151.5015066 157.600408 153.4916369 exp 164.0218819 151.919892 177.3981674 134.9917532 exp 149.5547838 147.9665203 152.0631762 138.3851923 exp 151.7571823 147.4674162 155.0765187 131.959559 cont 156.9806057 156.7375913 160.7384916 171.4358047 cont 160.2614938 166.7420033 162.2704028 165.9955943 cont 162.6988061 150.6283212 154.5049074 142.0616932 cont 153.8174296 155.1566603 146.2908376 148.8444447 cont 162.860962 163.245007 168.2923626 154.2705873 RE: General linear model with repeated measures - PsyPy - Dec-20-2020 Hey! I am not sure that I understand your question completely. Anyway, you might want to look into the Statsmodels package. Maybe a linear mixed-effects model can be used: https://www.statsmodels.org/stable/mixed_linear.html. |