MATLAB: Undefined function or variable ‘ranova’

MATLABranova bug

Hello, I am running Matlab R2018a. I have the statistics and machine learning toolbox but when I try to run ranova (repeated measures anova) I get "Undefined function or variable 'ranova' ". anova1 and friedman work perfectly. Any ideas what the problem might be?
Thanks

Best Answer

The only ranova function I see in the documentation is this one. In order to call this function, the first input must be a RepeatedMeasureModel object usually created by calling the fitrm function. Are you trying to call ranova on the output of fitrm or are you trying to call it on an array of data?