Learn R Programming

RNOmni (version 0.3.0)

DINT: Direct-INT

Description

Tests for association between genotype and the rank normalized phenotype, adjusting for covariates and population structure.

Usage

DINT(y, G, X, S, calcP = T, k = 3/8, parallel = F, check = T)

Arguments

y

Numeric phenotype vector.

G

Obs by snp genotype matrix.

X

Model matrix of covariates.

S

Model matrix of structure adjustments.

calcP

Logical indicating that p values should be calculated.

k

Offset applied during rank-normalization. See rankNormal.

parallel

Logical indicating whether to run in parallel. Must register parallel backend first.

check

Logical indicating whether to check the input.

Value

A numeric matrix of score statistics, one for each locus in G, assessing the null hypothesis that genotype is unrelated to the outcome. If calcP=T, a p-value is additionally calculated for each locus.

Examples

Run this code
# NOT RUN {
# Direct INT on the normal phenotype 
p = RNOmni::DINT(y=RNOmni::Y[,1],G=RNOmni::G[,1:10],X=RNOmni::X,S=RNOmni::S);
# }

Run the code above in your browser using DataLab