Skip to contents

Computes the z-scores (t-statistics) for association between Y and each column of X.

Usage

calc_z(X, Y, center = FALSE, scale = FALSE)

Arguments

X

N by J matrix of covariates.

Y

Vector of length N, or N by R matrix of response variables.

center

If center = TRUE, center X and Y.

scale

If scale = TRUE, scale X and Y.

Value

A matrix of z-scores.