Matlab's fitrm function must have full column rank
5 次查看(过去 30 天)
显示 更早的评论
Thanks in advance for the help.
I am trying to create a repeated measures model. I have a table with several response variables and several predictor variables. I created a model using Wilkinson notation then passed my table with the model to fitrm.
mdl = fitrm(t,model);
I am getting the following error.
Error using RepeatedMeasuresModel.fit (line 1331) The between-subjects design must have full column rank.
Error in fitrm (line 67) s = RepeatedMeasuresModel.fit(ds,model,varargin{:});
What exactly does this error mean? When I change my model to 'response ~ 1' (in addition to a few others I have found) fitrm runs just fine. I am fairly certain that my problem then has to be either with my formulation of the model, or (what I think is the problem) there is something wrong with my table.
The error itself hints to me that the rank of my table (if I were to convert to a matrix) is not full. However, I have checked to make sure that neither my rows nor my columns are linearly independent. In particular, I isolated two features, lets call them x and y, that when present give me the above error. When I use either
model = 'response ~ y'
or
model = 'response ~ x'
I get no error. When I use
model = 'response ~ y + x
I get the above error. y and x are linearly independent. What could possibly be going on here?
3 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Repeated Measures and MANOVA 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!