R/normalizeSxy.R

Defines functions normalizeSxy

# This function normalizes regression coefficients
# using their standard errors 'se' and the number of samples 'N'.


normalizeSxy <- function(S_XY_raw, se, N) {

    S_XY =  (1/sqrt(N)) * (S_XY_raw/se)

    return(S_XY)
}

Try the metaCCA package in your browser

Any scripts or data that you put into this service are public.

metaCCA documentation built on Nov. 8, 2020, 10:58 p.m.