Estimate the true effect at the causal variant using Z-scores and MAFs

est_mu(z, f, N0, N1, W = 0.2)

## Arguments

z Vector of marginal Z-scores Minor allele frequencies Number of controls Number of cases Prior for the standard deviation of the effect size parameter, beta, default 0.2

## Value

Estimate of the true effect at the causal variant

## Examples


nsnps <- 100
z_scores <- rnorm(nsnps, 0, 3) # simulate a vector of Z-scores
N0 <- 5000 # number of controls
N1 <- 5000 # number of cases

maf <- runif(nsnps, 0.05, 0.5)

est_mu(z = z_scores, f = maf, N0 = N0, N1 = N1)#> [1] 5.724744