Help with Linear mixed effects Model (LME)

1 Ansicht (letzte 30 Tage)
Luís Lamas
Luís Lamas am 8 Nov. 2018
Beantwortet: Paul am 5 Aug. 2020
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

Antworten (1)

Paul
Paul am 5 Aug. 2020
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

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by