gwas: The function conducts GWAS or multiple linear regression

Description Usage Arguments Value Note Author(s) Examples

Description

The function conducts GWAS or multiple linear regression

Usage

1
gwas(y, X)

Arguments

y

A vector of the geneotype of each individual.

X

A matrix or data.frame of several phenotypes or one phenotypes of each individual,requring X must be an array of at least two dimensions

Value

A data.fame of beta, se, p-vaule

Note

you can also use this fuction to conduct linear regression.

Author(s)

Ting Li, Xia Shen

Examples

1
2
3
a <- sample(c(0,1,2),10,replace=T)	
b <- matrix(rnorm(50,2,1),10,5)
gwas(a,b)

xiashen/sysubiostat documentation built on Aug. 30, 2020, 12:05 a.m.