Print

Print


Hi Michael,

it is in fact invalid to compute r^2 as in the case of ordinary least 
square. The link below may, however, point you in the right direction:

http://www.mathworks.com/support/solutions/en/data/1-CMABGO/index.html?product=ST&solution=1-CMABGO

HTH
Raphael

Am 04.08.2011 23:15, schrieb Michael Lombardo:
> Hi SPMers,
>
> I have a stats question that isn't necessarily related to SPM, but is 
> applying matlab code on some imaging data I have.  I'd like to 
> calculate a partial r squared value or coefficient of determination 
> using robust regression (my analysis uses the Matlab function 
> robustfit). Could anyone help with a suggestion about how to do this? 
>  I know how to do this in an ordinary least squares regression, but am 
> at a loss right now for what is the proper way to do this for robust 
> regression.
>
> Thanks,
>
> Mike