Missing anova function Statistics and Machine Learning Toolbox
7 次查看(过去 30 天)
显示 更早的评论
I checked using "ver" command and I have Statistics and Machine Learning Toolbox Version 10.2(R2016a). but I couldn't find "anova" function. "exist anova" return 0 while "exist anova1" return 2. how could I reinstall the toolbox?
0 个评论
采纳的回答
Swarooph
2016-8-30
anova is a function (method) that is embedded inside the class CompactLinearModel. That is why we are unable to find it using exist or which for that matter. anova1 however is a standalone function that is why we are able to find it. Try an example code to see if it works. For e.g. the following one from the doc page here:
X = randn(100,5);
y = X*[1;0;3;0;-1]+randn(100,1);
mdl = fitlm(X,y);
tbl = anova(mdl)
0 个评论
更多回答(1 个)
Azadeh Sharafi
2016-8-30
1 个评论
Swarooph
2016-8-31
Disclaimer: I don't know enough about anova to completely answer this.
However, when you search for it in the documentation, you see 4 different results for anova. So it seems like it can work on CompactLinearModel through functions such as fitlm, RepeatedMeasuresModel through functions such as fitrm, LinearMixedModel through functions such as fitlme and GeneralizedLinearMixedModel through functions such as fitglme.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Analysis of Variance and Covariance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!