I would like to compute the correlation between two rankings. Namely, I have two ranked variables, say:
7.00124562206948 'DR CONGO'
and a money2 table:
0.123754360000000 'DR CONGO'
Now simply I would like to compare the two variables ranked country1 and country2 as:
but the following error occurs:
Check for missing argument or incorrect argument data type in call to function 'imag'.
complexdata = ~(isreal(x) || all(imag(x(:))==0));
what am I doing wrong?
P.s. the rownames are the names of the country.