NULL_Model: Get parameters and residuals from the NULL model

Description Usage Arguments Details Value Author(s) Examples

View source: R/ACAT.R

Description

Compute model parameters and residuals for ACAT-V

Usage

1
NULL_Model(Y, Z = NULL)

Arguments

Y

a numeric vector of outcome phenotypes.

Z

a numeric matrix of covariates. Z must be full-rank. Do not include intercept in Z. The intercept will be added automatically.

Details

Y could only be continuous or binary. If Y is continuous, a linear regression model is fitted. If Y is binary, it must be coded as 0,1 and a logistic model is fitted.

Value

This function returns an object that has model parameters and residuals of the NULL model of no association between genetic variables and outcome phenotypes. After obtaining it, please use ACAT_V function to conduct the association test.

Author(s)

Yaowu Liu

Examples

1
2
3
 Y<-rnorm(10000)
 Z<-matrix(rnorm(10000*4),ncol=4)
 obj<-NULL_Model(Y,Z)

yaowuliu/ACAT documentation built on July 8, 2021, 8:26 p.m.