{"provider_name":"Hatena Blog","url":"https://ryamada22.hatenablog.jp/entry/20140329/1395876264","blog_url":"https://ryamada22.hatenablog.jp/","author_name":"ryamada22","version":"1.0","width":"100%","blog_title":"ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2","categories":["BUGS","\u30d9\u30a4\u30ba","MCMC","openBUGS","winBUGS"],"published":"2014-03-29 08:24:24","height":"190","title":"winBUGS\u95a2\u6570\u30d1\u30e9\u30e1\u30bf\u4e00\u89a7\u7de8","type":"rich","author_url":"https://blog.hatena.ne.jp/ryamada22/","image_url":null,"provider_url":"https://hatena.blog","description":"\u3053\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306e57\u30da\u30fc\u30b8\u304b\u3089\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059 \u30d9\u30eb\u30cc\u30fc\u30a4\u5206\u5e03 ## winBUGS r ~ dbern(p)#### R N <- 1000 p <- 0.3 R <- sample(0:1,N,replace=TRUE,prob=c(1-p,p)) hist(R) \u4e8c\u9805\u5206\u5e03 ## winBUGS r ~ dbin(p,n)#### R n <- 100 R <- rbinom(N,n,p) hist(R) \u30ab\u30c6\u30b4\u30ea\u30ab\u30eb ## winBUGS r ~ dcat(p[])#### R n <- 5 p <- 1:n p <- p/sum(p) R <- sample(1:n,N,replace\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20140329%2F1395876264\" title=\"winBUGS\u95a2\u6570\u30d1\u30e9\u30e1\u30bf\u4e00\u89a7\u7de8 - ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}