MATLAB: Undefined function ‘lratiotest’ for input arguments of type ‘double’

lratiotest

When I tried to use lratiotest. I get an error message 'Undefined function 'lratiotest' for input arguments of type 'double'.'
I've look up these kind of problem, most answers were about changing the path so that the function is actually in the path. But as lratiotest should be a bult-in function. I don't know what is wrong. And I've also tried install the matlab again with all packages and toolbox, but still has this error.
how can i slove this problem?

Best Answer

This function is part of the econometrics toolbox, make sure you have the license and have the toolbox installed
>> ver
Check if that function is on path
>> which -all lratiotest
If you have the toolbox and above command doesn't show the function, try:
>> restoredefaultpath
>> rehash toolboxcache
Related Question