<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryamada22</author_name>
  <author_url>https://blog.hatena.ne.jp/ryamada22/</author_url>
  <blog_title>ryamadaの遺伝学・遺伝統計学メモ</blog_title>
  <blog_url>https://ryamada22.hatenablog.jp/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>N1&lt;-100 N2&lt;-150 p1&lt;-p2&lt;-0.3 Niter&lt;-10000 p.out&lt;-rep(0,Niter) v1&lt;-c(rep(1,N1),rep(2,N2)) for(i in 1:Niter){ v2&lt;-sample(c(1,2),N1+N2,replace=TRUE,prob=c(p1,1-p1)) #print(table(v1,v2)) #p.out[i]&lt;-chisq.test(c(rep(1,N1),rep(2,N2)),c(v1,v2))$p.value p.out[i]&lt;-chisq.test(table(v1,v2),correct=FALSE)$p.valu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20110704%2F1309655122&quot; title=&quot;(2) 帰無仮説からの２ｘ２表ランダムサンプリング - ryamadaの遺伝学・遺伝統計学メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/r/ryamada22/20110703/20110703102442.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-07-04 10:05:22</published>
  <title>(2) 帰無仮説からの２ｘ２表ランダムサンプリング</title>
  <type>rich</type>
  <url>https://ryamada22.hatenablog.jp/entry/20110704/1309655122</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
