cheenybaba
Bioengineer
- Jun 18, 2007
- 2
Hi,
I work with MEG data for neurocognitive studies.
I am trying to convert my fft power values into zscores (to standardize them across participants). I have collected data for three conditions for each of my participant.
I have two questions:
1. Should I convert my power values into z scores for the entire data before separating the data based on conditions? OR should I convert the power values to z scores for each of my conditions separately?
I am leaning towards the former method of conversion to z scores but am still not sure if thats the right method. can someone who knows help please??
2. And that leads to the second question of how to convert my values across the entire matrix! For each of my participant, the size of the matrix is: 550x248 (where 550 are the number of sample points and 248 are the number of channels across which each of the sample points are generated). I know mean(X) computes the mean across columns. Can someone help me in figuring out whether
mean(mean(X)) calculates the means across the entire matrix (i.e. population, in my case)?
If so, does the same logic apply to standard deviation? (i.e. std(X) calculates standard deviation for each of the columns in the matrix while std(std(X)) calculates it for the entire matrix? When I do std(std(X)), the answer is always zero.
I am attaching the script that was meant to convert my scores to zscores. but matlab doesnt like it. Can someone help me figure out why?
function Y=standardize(X)
mu=mean(mean(X))
s=std(std(X))
x=X-mu
z=x./s
end
Huge Thanks!
Cheenybaba
I work with MEG data for neurocognitive studies.
I am trying to convert my fft power values into zscores (to standardize them across participants). I have collected data for three conditions for each of my participant.
I have two questions:
1. Should I convert my power values into z scores for the entire data before separating the data based on conditions? OR should I convert the power values to z scores for each of my conditions separately?
I am leaning towards the former method of conversion to z scores but am still not sure if thats the right method. can someone who knows help please??
2. And that leads to the second question of how to convert my values across the entire matrix! For each of my participant, the size of the matrix is: 550x248 (where 550 are the number of sample points and 248 are the number of channels across which each of the sample points are generated). I know mean(X) computes the mean across columns. Can someone help me in figuring out whether
mean(mean(X)) calculates the means across the entire matrix (i.e. population, in my case)?
If so, does the same logic apply to standard deviation? (i.e. std(X) calculates standard deviation for each of the columns in the matrix while std(std(X)) calculates it for the entire matrix? When I do std(std(X)), the answer is always zero.
I am attaching the script that was meant to convert my scores to zscores. but matlab doesnt like it. Can someone help me figure out why?
function Y=standardize(X)
mu=mean(mean(X))
s=std(std(X))
x=X-mu
z=x./s
end
Huge Thanks!
Cheenybaba