Skip to content

Commit

Permalink
Merge branch 'master' of github.com:stephenslab/mr.ash.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarbo committed Oct 27, 2023
2 parents 4d0cff5 + a687714 commit dd3e0b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ get_full_posterior <- function (X, y, w, beta, pi, sigma2, sa2) {
s2 = sigma2 / outer(w, 1/sa2, '+')

# compute m, phi
m = bw * s2
m = bw * s2/ sigma2
phi = -log(1 + outer(w,sa2))/2 + m * (bw/2/sigma2)
phi = c(pi) * t(exp(phi - apply(phi,1,max)))
phi = t(phi) / colSums(phi)
Expand Down

0 comments on commit dd3e0b2

Please sign in to comment.