load_beta: Load univariate regression beta coefficients.

Description Usage Arguments Details Value

Description

The function loads the univariate regression beta coefficients into the workspace.

Usage

1
load_beta(trait_name, file_name = NULL)

Arguments

trait_name

a character for the name of the quantitative trait, assuming the file is named as trait_name_univariate_beta.txt.

file_name

a character to specify the full directory of the univariate regression coefficient file instead of trait_name_univariate_beta.txt.

Details

The univariate regression coefficients are assumed to be computed univariately using:
coef(summary(lm(pheno_data ~ geno[,j])))[2,1]. Both genotype data and phenotype data over individuals need to be standardized with mean = 0 and variance = 1. The data file should have two columns indicating chromosome number and the regression coefficients without headers.

Value

a data matrix of univariate regression coefficients.


GMELab/GraBLD documentation built on May 4, 2019, 3:20 p.m.