est_zscore: estimate Z score at a single SNP

Description Usage Arguments Details Value Author(s)

Description

Estimates the expected Z Score for a single SNP

Usage

1
est_zscore(N0, N1, Ufactor, powerfactor, freq, GenoProbXW)

Arguments

N0

The number of Y=0

N1

The number of Y=1

Ufactor

The constant factor used to compute the expectation of U

powerfactor

The constant factor used to compute the expectation of the genotype of X to some power

freq

Frequencies of SNP appearances (computed using snphap)

GenoProbXW

An object giving the probability of seeing each X,W genotype vector

Details

Assumes the input CVs, and the relationship, gamma, between them and the trait of interest

Assumes we have already generated GenoProbXW for all X

Value

The expected Z Score for SNP X, assuming the causal SNPs are W

Author(s)

Mary Fortune and Chris Wallace


mdfortune/simGWAS documentation built on May 22, 2019, 3:25 p.m.