-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPartialRankRSA.m
More file actions
19 lines (19 loc) · 866 Bytes
/
PartialRankRSA.m
File metadata and controls
19 lines (19 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% Partial Spearman rho RSA.
% gl = PartialRankRSA(modelrdms,datardms,partialrdms)
classdef PartialRankRSA < PearsonRSA
methods
function gl = PartialRankRSA(modelrdms,datardms,partialrdms)
% partial r is basically the r between modelrdms and datardms
% after partialrdms has been fitted and subtracted from each.
tempmodel = RankRSA(partialrdms,modelrdms);
resmodel = residualsfull(tempmodel);
tempdata = RankRSA(partialrdms,datardms);
resdata = residualsfull(tempdata);
% then use super-class to initialise
% NB, confusingly, we DON'T want to use RankRSA as superclass
% here because then we would incur another rank transform of
% the residuals.
gl = gl@PearsonRSA(resmodel,resdata);
end
end
end