<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cross_hyou</author_name>
  <author_url>https://blog.hatena.ne.jp/cross_hyou/</author_url>
  <blog_title>Rで何かをしたり、読書をするブログ</blog_title>
  <blog_url>https://www.crosshyou.info/</blog_url>
  <categories>
    <anon>データ分析</anon>
  </categories>
  <description>www.crosshyou.info の続きです。 今回はクロス表を作って、カイ二乗検定をしてみます。 勝利数を Aクラス・Bクラス x セリーグ・パリーグ、 Aクラス・Bクラス x 関東・非関東 セリーグ・パリーグ x 関東・非関東 この３つのクロス表で分類してカイ二乗検定をします。 まずは、Aクラス・Bクラス x セリーグ・パリーグからやってみます。 tapply関数でクロス表は作成できます。 こうなりました。Aクラスのセリーグの球団の勝利数は217です。 chisq.testでこのクロス表に偏りがあるかどうかを調べます。 p-value = 0.6902 &gt; 0.05 ですから、Aクラス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2019%2F10%2F24%2F072907&quot; title=&quot;プロ野球の勝敗データの分析３ - R言語のtapply関数でクロス表を作成して、chisq.test関数でカイ二乗検定。 - Rで何かをしたり、読書をするブログ&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/c/cross_hyou/20191024/20191024062459.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-24 07:29:07</published>
  <title>プロ野球の勝敗データの分析３ - R言語のtapply関数でクロス表を作成して、chisq.test関数でカイ二乗検定。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2019/10/24/072907</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
