Make simple simulated summary data

makeSimDataForMrlocus(
  nsnp = c(7:10),
  idx = 5,
  alpha = 0.5,
  sigma = 0.05,
  betas = 1:4,
  se = 0.25,
  n_mult = 1
)

Arguments

nsnp

number of SNPs per signal cluster

idx

the causal SNP (same per cluster for simplicity)

alpha

the true slope of B coefficients over A coefficients

sigma

the SD of true B coefficients around the conditional values given true A coefficients

betas

the true A coefficients

se

the standard errors for betas

n_mult

how many more samples the B study has

Value

a list of beta_hat_a, beta_hat_b, se_a, se_b, Sigma_a, Sigma_b (themselves lists), and alleles

(a list of data.frames each with id, ref, eff for the SNP id, reference allele, and effect allele).