simBeta: Simulate eQTL effect sizes

View source: R/simBeta.R

simBetaR Documentation

Simulate eQTL effect sizes

Description

The function takes in a proportion of causal eQTLs and total heritability of eQTLs and generates n_snps eQTL effect sizes

Usage

simBeta(p.causal, eqtl_h2, n_snps)

Arguments

p.causal

numeric, proportion of causal eQTLs

eqtl_h2

numeric, heritability of expression from eQTLs

n_snps

integer, number of eQTLs

Value

vector of effect sizes


bhattacharya-a-bt/MOSTWAS documentation built on April 6, 2023, 12:20 a.m.