This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/tcsh | |
# | |
# by: Johan Carlin | |
# date: 8/9/2014 | |
# purpose: sync folders between computers. Assumes that both are available | |
# on the local network (ie you are using VPN if the host is behind a | |
# firewall) | |
# usage: unisync [ucl] [j.carlin] | |
# get optional input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function QT_parCorrVsRegression | |
% QT_parCorrVsRegression.m | |
% When comparing a reference RDM to a candidate RDM, we might want to | |
% partial out the contribution of another RDM on the correlation between | |
% the candidate and the reference RDMs. | |
% this could be done via partial correlations or linear regression. | |
% this scripts demonstrates that the two approaches are identical. | |
% clear;clc;close all | |
%% control parameters | |
nCond = 72; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% demonstration of how squared distances can be combined linearly in | |
% multiple regression RSA, while ordinary distances cannot. In this case | |
% the distortions from doing multiple regression are relatively subtle but | |
% perhaps the difference could be made more dramatic by other means. | |
% | |
% Actually, the less subtle effect is on parameter estimates - the fits | |
% from model_multi2 below are [.5 .5], which is absolutely correct since | |
% the predictors were already scaled to match the data. By contrast the | |
% non-squared fit comes up with [.41 .65] - regardless of how minor the | |
% distortions are in the overall fitted RDM, the parameter estimates are |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Explore correspondence between different types of permutation tests and | |
% parametric stats inference (FFX/RFX). We test two classes of permutation test: | |
% a within-subject permutation approach (Stelzer et al., 2013, NI), and the | |
% standard sign-flip permutation test (Nichols/Holmes, 2001, HBM). | |
% | |
% OBSERVATIONS: | |
% * RFX parametric and sign flip permutation p values are highly similar, as | |
% expected | |
% * FFX parametric and within-subject permutation p values are highly similar | |
% * using T as the test stat for within-subject permutation test seems to make |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use git merge driver to always resolve conflicts in file VERSION in favor of merge target |