<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>indenkun</author_name>
  <author_url>https://blog.hatena.ne.jp/indenkun/</author_url>
  <blog_title>備忘ログ</blog_title>
  <blog_url>https://indenkun.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>t検定</anon>
  </categories>
  <description>Rでt検定をするときに使用する、t.test()は集計前のデータのベクトルを与えることでt検定を行ってくれる（{stats}の）。 ところで、t検定はサンプルの平均値と分散、サンプル数がわかればt値と自由度が分かるので、p値等々ほしい値が分かる。 pythonだとscipy.statsのttest_ind_from_statsとかで記述統計量から計算できるが、ざっと見た感じRで記述統計量からt検定できるものが見つからなかった（多分ちゃんと探せばありそう）。 {stats}のt.test.defulat()を改造すると簡単にできそうだったので作ってみた。 そもそもRで統計処理しているときに記述統…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Findenkun.hatenablog.com%2Fentry%2F2023%2F01%2F13%2F150844&quot; title=&quot;Rで集計済み（記述統計量）データでt検定を行うメモ - 備忘ログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-13 15:08:44</published>
  <title>Rで集計済み（記述統計量）データでt検定を行うメモ</title>
  <type>rich</type>
  <url>https://indenkun.hatenablog.com/entry/2023/01/13/150844</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
