|
>> "Janis Weir" <weij@bankofcanada.ca> wrote in message
>> news:hf0tbg$dju$1@fred.mathworks.com...
>> > Command for printing out the fitted values of a basic OLS regression?
>> I'm using the result=ols(y,x) command. I assume that the result.yhat
>> command prints the same estimate coefficients?
Hi Janis
We (The MathWorks) don't have a command named OLS.
This is only a guess, however, I'm assuming that one of your colleagues at
the Bank of Canada has designed their own custom regression function.
(Alternatively, I know that there is a file exchange submission named OLS,
however, this is performing Orthogonal Least-Squares rather than Ordinary
Least-Squares)
You should have a file names "ols.m" in one of your directories. If you
open this up in the MATLAB editor you might be able to find out whats going
on (with luck, the individual who wrote the function might also have
provided some documentation and/or examples)
I'm not sure what result.yhat will return. This depends completely on how
the function was written.
regards,
Richard
|