Problem with running anova
Ältere Kommentare anzeigen
Hi everyone,
I have a question.
Turns out that when a create a linear model (using fitlm) and than I want to run an anova to that model I get this error:
Error using gather
Too many input arguments.
Error in classreg.regr.CompactLinearModel/componentanova (line 824)
[ss,df,ms,f,pval] = gather(ss,df,ms,f,pval);
Error in classreg.regr.CompactLinearModel/anova (line 319)
tbl = componentanova(model,sstype);
I had checked with colleagues and they don't have a "gather" function in line 824
Line 824: [ss,df,ms,f,pval] = gather(ss,df,ms,f,pval)
Does anyone knows what it could be?
4 Kommentare
These types of questions are easier to address if you provide a minimal working example that produces the error on your end. My shot-in-the-dark is that your shadowing a matlab function with a 3rd party function that contains the same name as the matlab function.
Note that Matlab does have a gather function (since R2016b) but it only contains 1 input. However, gather could be a shadowed method which is why it would be nice to quickly run a minimal working example.
Adam Danz
am 15 Dez. 2021
I applied the run feature to your code so we can see the results.
Aitana Grasso
am 15 Dez. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Analysis of Variance and Covariance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!