I can't find the ranova function

3 views (last 30 days)
I've installed the stats and machine learning toolbox. But there is no ranova.m
Can anyone give me the source code plz

Accepted Answer

Image Analyst
Image Analyst on 12 Oct 2023
Edited: Image Analyst on 12 Oct 2023
You probably don't have a license for it because I see that function should be in that toolbox since 2014. What happens if you run this code:
% Check that user has the specified Toolbox installed and licensed.
% hasLicenseForToolbox = license('test', 'image_toolbox'); % Check for Image Processing Toolbox.
% hasLicenseForToolbox = license('test', 'Image_Acquisition_Toolbox'); % Check for Image Acquisition Toolbox.
hasLicenseForToolbox = license('test', 'Statistics_Toolbox'); % Check for Statistics and Machine Learning Toolbox.
% hasLicenseForToolbox = license('test', 'Signal_Toolbox'); % Check for Signal Processing Toolbox.
% hasLicenseForToolbox = license('test', 'Video_and_Image_Blockset'); % Check for Computer Vision System Toolbox.
% hasLicenseForToolbox = license('test', 'Neural_Network_Toolbox'); % Check for Deep Learning Toolbox.
if ~hasLicenseForToolbox
% User does not have the toolbox installed, or if it is, there is no available license for it.
% For example, there is a pool of 10 licenses and all 10 have been checked out by other people already.
ver % List what toolboxes the user has licenses available for.
message = sprintf('Sorry, but you do not seem to have that Toolbox.\nDo you want to try to continue anyway?');
reply = questdlg(message, 'Toolbox missing', 'Yes', 'No', 'Yes');
if strcmpi(reply, 'No')
% User said No, so exit.
return;
end
else
fprintf('You do have a license for that toolbox.\n')
end
You do have a license for that toolbox.
Can you run this example code from the help?
load fisheriris
t = table(species,meas(:,1),meas(:,2),meas(:,3),meas(:,4),...
'VariableNames',{'species','meas1','meas2','meas3','meas4'});
Meas = table([1 2 3 4]','VariableNames',{'Measurements'});
rm = fitrm(t,'meas1-meas4~species','WithinDesign',Meas);
ranovatbl = ranova(rm)
  1 Comment
Qicheng Lu
Qicheng Lu on 12 Oct 2023
it shows that I do have a license for that toolbox.
I can run the example code , amazing
Now when I enter the "open ranova" in cmd, the RepeatedMeasuresModel.m will open and point to the
function [tbl,A,C,D] = ranova(this,varargin)
thank u so much!!!!

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!