如果你在winbugs是如此设置
1.sample monitor tool
beg:1001 (就是 burn in)
2.update tool
updates:11000
按"stats" button输出的结果与
底下的R code是相同的. start 1001, sample 10000
modelUpdate(1000) # burn in
modelUpdate(10000) # 10000 more iterations ...
samplesStats("*") # the summarized results
> samplesStats("*") # the summarized results
mean sd MC_error val2.5pc median val97.5pc start sample
p[1] 0.253600 0.004377 4.425e-05 0.245100 0.253600 0.26230 1001 10000
若模型简单,要估的参数少,burn in设1000,2000就够了.
详细可参阅 manual14.pdf page-53 Checking convergence