simBeta.RdThe 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)
| p.causal | numeric, proportion of causal eQTLs |
|---|---|
| eqtl_h2 | numeric, heritability of expression from eQTLs |
| n_snps | integer, number of eQTLs |
vector of effect sizes