BookmarkSubscribeRSS Feed
tmatsuzaki
Calcite | Level 5

階層ベイズモデルを行なうためにproc mcmcの使用を検討しています。

MCMCを実行する際には一般的にチェイン数を設定すると思いますが、proc mcmc内でチェイン数を設定する方法がわかりません。

documentを調べたのですが、記載が見つかりませんでした。

ご存知の方がいれば、ご教授いただけますと幸いです。

2 REPLIES 2
Rick_SAS
SAS Super FREQ

There are two ways to run multiple Markov chains.

1. If you want to use random initial values for parameters, duplicate your data set k times and use the BY statement to run k chains.

2. If you want to specify initial values for each chain, see the documentation for the Gelman-Rubin test

tmatsuzaki
Calcite | Level 5

Thanks for your reply!

Your reply is exactly what I wanted (I was also looking for r-hat value).

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Discussion stats
  • 2 replies
  • 1857 views
  • 4 likes
  • 2 in conversation
OSZAR »