simulated_z_null: Compute a NULL simulated Z Score

Description Usage Arguments Author(s) Examples

View source: R/zscore.R

Description

Compute matrix of simulated Z scores about expected values of 0 - ie under a null of no association at any SNP

Usage

1
simulated_z_null(snps, freq, nrep = 1)

Arguments

snps

The snps at which we wish to compute the expected Z Score

freq

Haplotype frequencies as a data.frame, with column Probability indicating relative frequency in controls.

nrep

Number of replicates (simulated vectors of Z scores) under this scenario. Default=1

Author(s)

Mary Fortune and Chris Wallace

Examples

1
2
3
freq=fake_freq(nhaps=100,nsnps=5) # fake haplotype frequency data
    Z=simulated_z_null(snps=paste0("s",1:5),freq=freq,nrep=3)
Z # no causal variants

simGWAS documentation built on Aug. 22, 2019, 9:03 a.m.