How to fix Error for Repeated Measures Model.fit: The between-subjects design must have full column rank.
18 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I was wondering how to fix for this error:
Error using RepeatedMeasuresModel.fit (line 1346)
The between-subjects design must have full column rank.
Error in fitrm (line 77)
s = RepeatedMeasuresModel.fit(ds,model,varargin{:});
Error in Ranova_3_ON (line 40)
rm = fitrm(t,'Center-Edge ~ Type + TumorNumber + TumorColor + TumorStiffness + TumorBorder +
BrainVolRemoved + TumVolRemoved + BloodLoss', 'WithinDesign',Region);
My variables are all independent, but I don't know how to make matlab understand that. I included a sample of what my table looks like as a screenshot, and this is my code for making the fit repeated measures table model (in order to run a ranova):
rm = fitrm(t,'Center-Edge ~ Type + TumorNumber + TumorColor + TumorStiffness + TumorBorder + BrainVolRemoved + TumVolRemoved + BloodLoss', 'WithinDesign', Region);
Thank you!
0 Commenti
Risposte (1)
Coren Pulleyblank
il 17 Lug 2019
I have been struggling with this error message as well and I'm new to MATLAB and these statistical measures. For starters I was only testing 1 response variable over 5 timepoints and 5 treatments. For some reason the problem seemed to be fixed when I changed my input table to have the treatments input as text rather than categorical data. Not sure if this might help anyone else.
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!