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

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