{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20110704%2F1309655123\" title=\"(3) \u5bfe\u7acb\u4eee\u8aac\u304b\u3089\u306e\uff12\uff58\uff12\u8868\u30e9\u30f3\u30c0\u30e0\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0 - 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>","description":"N1<-100 N2<-150 p1<-0.3 p2<-0.4 Niter<-10000 p.out<-rep(0,Niter) v1<-c(rep(1,N1),rep(2,N2)) for(i in 1:Niter){ v2<-c(sample(c(1,2),N1,replace=TRUE,prob=c(p1,1-p1)),sample(c(1,2),N2,replace=TRUE,prob=c(p2,1-p2))) #print(table(v1,v2)) #p.out[i]<-chisq.test(c(rep(1,N1),rep(2,N2)),c(v1,v2))$p.value p.ou\u2026","type":"rich","width":"100%","blog_title":"ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/r/ryamada22/20110703/20110703102726.jpg","blog_url":"https://ryamada22.hatenablog.jp/","categories":["R"],"author_name":"ryamada22","provider_name":"Hatena Blog","height":"190","published":"2011-07-04 10:05:23","version":"1.0","title":"(3) \u5bfe\u7acb\u4eee\u8aac\u304b\u3089\u306e\uff12\uff58\uff12\u8868\u30e9\u30f3\u30c0\u30e0\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0","author_url":"https://blog.hatena.ne.jp/ryamada22/","url":"https://ryamada22.hatenablog.jp/entry/20110704/1309655123"}