We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to sample from the posterior?
The text was updated successfully, but these errors were encountered:
@garyzhubc The code for function varbvspve illustrates how to do this.
varbvspve
Sorry, something went wrong.
I'm seeing this loop
pve <- rep(0, nr) for (i in 1:nr) { j <- sample(ns, 1, prob = fit$w) b <- with(fit, mu[, j] + sqrt(s[, j]) * rnorm(p)) b <- b * (runif(p) < fit$alpha[, j]) sz <- c(var1(X %*% b)) pve[i] <- sz/(sz + fit$sigma[j]) }
Is b here a posterior sample of inclusion?
No branches or pull requests
How to sample from the posterior?
The text was updated successfully, but these errors were encountered: