RVS_btrap: use RVS to test associaton by bootrtrap, given phenotype (Y),...

Description Usage Arguments Value

Description

use RVS to test associaton by bootrtrap, given phenotype (Y), expected values of genotypes for case and controls (X) estimated genotype frequency (P) and number of times of bootstrap (nboot)

Usage

1
RVS_btrap(Y, X, P, nboot, RVS = "TRUE")

Arguments

Y

- a vector with the phenotype for n individuals (=ncase+ncont), first ncase (y=1) then ncont (y=0) (integar)

X

- a vector of genotype for a snp, first ncase and then ncont

P

(vector with length 3 (double)) - estimated genotype frequency for a variant P(G=0), P(G=1) and P(G=2)

nboot

- number of bootstrap

RVS,

logic variable to indicate the estimation of variance of the score statistic.

Value

p-values for the snp


Struglab/RVS documentation built on May 9, 2019, 3:11 p.m.