Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yTrials output from hmrR_BlockAvg #4

Open
AdrianCMar opened this issue Jan 17, 2020 · 1 comment
Open

yTrials output from hmrR_BlockAvg #4

AdrianCMar opened this issue Jan 17, 2020 · 1 comment

Comments

@AdrianCMar
Copy link

Hi
I think the baseline of each trial is set to zero based on the mean of the average baseline. The result is that, for example, when plotting the yTrial results, their baselines are not centered around zero.
Should the mean of the baseline of each trial be substracted from each trial?

My suggestion, for example (lines 109:111 of hmrR_BlockAvg):
for iBlk = 1:nBlk
foom_temp = ones(size(yTrials(iC).yblk,1),1)*mean(yTrials(iC).yblk(1:-nPre,:,ii,iBlk),1);
yTrials(iC).yblk(:,:,ii,iBlk) = yTrials(iC).yblk(:,:,ii,iBlk) - foom_temp;
end

Tried it in Homer2 and seems to work. Not sure though if there were other reasons for it being computed like that. Sorry in case I misunderstood.

Thank you

@sstucker
Copy link
Collaborator

sstucker commented Dec 1, 2021

@dboas I will leave this to you to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants