b2r: Obtain correlation coefficients and their variance-covariances
Description
Obtain correlation coefficients and their variance-covariances
Usage
b2r(b, s, rho, n)
Value
The returned value is a list containing:
r the vector of correlation coefficients.
V the variance-covariance matrix of correlations.
Arguments
b
the vector of linear regression coefficients.
s
the corresponding vector of standard errors.
rho
triangular array of between-SNP correlation.
n
the sample size.
Author
Jing Hua Zhao
Details
This function converts linear regression coefficients of phenotype on
single nucleotide polymorphisms (SNPs) into Pearson correlation coefficients
with their variance-covariance matrix. It is useful as a preliminary step
for meta-analyze SNP-trait associations at a given region. Between-SNP
correlations (e.g., from HapMap) are required as auxiliary information.