est_zscore: estimate Z score at a single SNP

Description Usage Arguments Value Author(s)

View source: R/est_zscore.R

Description

Estimates the expected Z Score for a single SNP, assuming the input CVs, and the relationship, gamma, between them and the trait of interest Assumes we have already generated GenoProbXW for all X

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

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, 2017, 2:11 a.m.