generate_data_be: Simulate summary statistics according to the binary-effects...

Description Usage Arguments Value Examples

View source: R/source1.R

Description

Simulate summary statistics according to the binary-effects (be) model.

Usage

1
2
generate_data_be(M = 50 * 10^3, p = 0.01, tau2 = 0.00025,
  resref = NULL, n = rep(50 * 10^3, 10))

Arguments

M

number of SNPs for which to simulate summary stats.

p

proportion of SNPs with real non-zero effects.

tau2

variance of real associated non-zero SNPs.

resref

an optional vector of residual variances to sample from (with replacement) when generating the standard errors for the summary stats. Default is NULL, in which case the residual variances calculated from a Cigarretes Per Day GWAS (Liu, Jiang 2019) are used.

n

vector of sample sizes from the contributing studies.

Value

A list containing:

Examples

1
generate_data_mamba(M=100, p=0.01, tau2=2.5e-4, n=rep(10^4, 10), lambda=0.975, alpha=15) 

dan11mcguire/mamba documentation built on Nov. 10, 2020, 12:37 a.m.