R/compute_covs.R
compute_univariate_sumstats.Rd
Function to compute regression coefficients and their standard errors from univariate simple linear regression.
compute_univariate_sumstats(
X,
Y,
standardize = FALSE,
standardize.response = FALSE,
mc.cores = 1
)
n x p matrix of covariates.
n x r matrix of responses.
If TRUE
, X is "standardized" using the
sample means and sample standard deviations.
If TRUE
, Y is "standardized" using the
sample means and sample standard deviations.
Number of cores to use. Parallelization is done over responses.
A list with following elements:
p x r matrix of the regression coeffcients.
p x r matrix of the standard errors for regression coeffcients.