simulated_vbeta(N0, N1, snps, W, gamma.W, freq, GenoProbList = make_GenoProbList(snps = snps, W = W, freq = freq), nrep = 1)
The number of Y=0
The number of Y=1
The snps at which we wish to compute the expected Z Score
The true causal SNPs (these need not be in "snps")
The log odds ratios of effect of the true causal SNPs (not including gamma0, the intercept term)
Haplotype frequencies as a data.frame, with column Probability indicating relative frequency in controls.
An list of objects giving the probability of seeing each X,W genotype vector. This can be calculated within the function if no value supplied, or you can pass a pre-calculated version
Number of replicates (simulated vectors of Z scores) under this scenario. Default=1
A simulated variance of beta for each SNP X, assuming the causal SNPs are W
Assumes we have a list, GenoProbList, giving the GenoProb values for each X.