rwyxz {geostats} | R Documentation |
Spurious correlation
Description
Calculate the ‘null correlation’ of ratios, using the the spurious correlation formula of Pearson (1897).
Usage
rwyxz(
mw,
mx,
my,
mz,
sw,
sx,
sy,
sz,
rwx = 0,
rwy = 0,
rwz = 0,
rxy = 0,
rxz = 0,
ryz = 0
)
ryxy(mx, my, sx, sy, rxy = 0)
rxzyz(mx, my, mz, sx, sy, sz, rxy = 0, rxz = 0, ryz = 0)
Arguments
mw |
the mean of variable |
mx |
the mean of variable |
my |
the mean of variable |
mz |
the mean of variable |
sw |
the standard deviation of variable |
sx |
the standard deviation of variable |
sy |
the standard deviation of variable |
sz |
the standard deviation of variable |
rwx |
the correlation coefficient between |
rwy |
the correlation coefficient between |
rwz |
the correlation coefficient between |
rxy |
the correlation coefficient between |
rxz |
the correlation coefficient between |
ryz |
the correlation coefficient between |
Value
the null correlation coefficient
References
Pearson, K. “Mathematical contributions to the theory of evolution. – on a form of spurious correlation which may arise when indices are used in the measurement of organs.” Proceedings of the Royal Society of London 60.359-367 (1897): 489-498.
Examples
rxzyz(mx=100,my=100,mz=100,sx=1,sy=1,sz=10)