rScore.scs: Repeated Score Test, Single Continuous Surrogate

Description Usage Arguments Value

View source: R/SCS_Tests.R

Description

Applies a single marker score test of H_{0}:β_{G}=0 for each locus in G. Run time is reduced by assuming that the surrogate phenotype does not depend on genotype, allowing for re-use of the null model.

Usage

1

Arguments

Y

Phenotype matrix (target, surrogate)

D.t

Target design matrix.

D.s

Surrogate design matrix.

G

Obs by locus genotype matrix.

parallel

Run in parallel? Must register parallel backend first.

Value

Matrix with one row per column of G. Each row includes the score statistic, the degrees of freedom, and a p-value based on the chi-square distribution.


zrmacc/SCS documentation built on March 19, 2018, 3:10 a.m.