Sample beta values given standard errors

sample_beta(beta, se, r = NULL, af = NULL)

Arguments

beta

array of beta values - i.e. the true coefficients. If using the correlation matrix r then this should be an LD-aware set of expected beta values.

se

array of se values

r

matrix of LD correlations amongst the SNPs. If NULL (default) then assumes no LD

af

array of allele frequencies. Must be non-null if r is non-null.

Value

array of beta hats