scalebyN | R Documentation |
Estimate z-scores for column variables using N rather than standard N-1
scalebyN(x, center = T, scale = T)
x |
matrix containing set of scores to be transformed |
center |
mean-center scores (run |
scale |
divide by standard deviation (run |
Why do this? Because it is easier to show that correlations are equivalent to (1)
the average product of zX*zY
scores (Cohen, Cohen, Aiken, & West, 2003; Eq. 2.3.1) or (2)
the average squared difference of zX
and zY
scores (Cohen, Cohen, Aiken, & West, 2003; Eq. 2.2.4)
when using z-scores computed by using N
rather than N-1
. Indeed, when done so, the averages of these
product decompositions become strictly equivalent.
Standardized scores, calculated using N rather than N-1 for standard deviations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.