<?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>UnsplashのMaitheli Maitraが撮影した写真 www.crosshyou.info の続きです。 前回は、回帰分析をしました。今回はその続きで、回帰分析したモデルの残差が均一分散かどうかをチェックします。 lmtestパッケージのbptest()関数で簡単にチェックできます。 bptest()関数は、Breush-Pagan Test を実行する関数です。 p値が0.3075と0.05よりも大きい値なので、均一分散だと言えます。 bptest()関数を使わない方法は、resid()関数で残差をだして、その2乗を説明変数で回帰分析します。 こちらの方法では、p値は0.2587で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2023%2F02%2F05%2F090225&quot; title=&quot;都道府県別の保護統計調査のデータの分析７ - R言語で回帰分析モデルの不均一分散をチェックする。 - 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/20230205/20230205075901.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-05 09:02:25</published>
  <title>都道府県別の保護統計調査のデータの分析７ - R言語で回帰分析モデルの不均一分散をチェックする。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2023/02/05/090225</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
