Skip to content
New issue

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

specify group-wise precision parameters #3

Open
zhenglei-gao opened this issue May 28, 2015 · 0 comments
Open

specify group-wise precision parameters #3

zhenglei-gao opened this issue May 28, 2015 · 0 comments

Comments

@zhenglei-gao
Copy link

Normally it should be:

a <- mcmc.normal(rnorm(10),mu=0,tau=rep(c(1,3),each=5))

However, what I need is a group-wise tau.y, which is in turn an mcmc.gamma object. Say

tau.y <- mcmc.gamma(c(sd(y_Grp1),sd(y_Grp2,na.rm=TRUE)),alpha=0.1,beta=0.1)

Will this work as expected?

y.lik <- mcmc.normal(y,mu=y.hat,tau=rep(tau.y,each=5),observed=TRUE)

PS: I found rcppbugs recently and it seems really fast and useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant