Help with Linear mixed effects Model (LME)

조회 수: 1 (최근 30일)
Luís Lamas
Luís Lamas 2018년 11월 8일
답변: Paul 2020년 8월 5일
Hi! I have a complicated dataset of biomechanical analysis where I am looking at different joint angles and the way they change over time (in % of of cycle) in different conditions (2 types). I need to investigate the influence of subjects (3 of them) and timepoint (1 to 101) on the data. I want to regress angle on condition.
I have prepared an a table with the variables for lme.
lme = fitlme(tbl,'Angle~Condition+(1|Subject)+(Conditon-1|Subject)');
Condition and Subject are categorical data on tbl.
When I run this line I keep getting the error message:_
"Class 'classreg.regr.LinearLikeMixedModel' is not an allowed subclass of class 'classreg.regr.ParametricRegression'.
Error in fitlme (line 224) lme = LinearMixedModel.fit(ds,formula,varargin{:});"
Any help on modelling this and why I am getting this error?
Thanks

답변 (1개)

Paul
Paul 2020년 8월 5일
Hi Luís,
That's a rather unfamiliar error to me. Could you provide the code you use to produce the table and some portion of the contents of the table so I might reproduce the error?
Also, how many datapoints (rows) are in your table?
And did all three subjects provide data for both conditions?
Also, I believe your formula can be simplified to 'Angle ~ Condition + (Condition|Subject)'. Is there any particular reason you have it formulated the way you did?
Best,
Paul

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by