<?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 の続きです。 前回はlm関数で1人当りの課税所得を予測しました。 今回はMASSパッケージのrlm関数でrobust linear regression modelで予測してみようと思います。 library(MASS)でMASSパッケージを読み込みます。 使い方はlm関数と同じです。 t valueのところを見ると、Yearは0.1095と2よりも小さいので有意でないですね。 このrlm1と名付けたモデルでperIncを予測します。 predict関数を使います。 MSEを計算します。 0.01374251です。前回のlm関数で作成したモデル、lm1, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2020%2F05%2F16%2F101506&quot; title=&quot;都道府県別の事業所数(民営)のデータ分析５ - R言語のrlm関数でrobust linear regression - 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/20200516/20200516095740.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-16 10:15:06</published>
  <title>都道府県別の事業所数(民営)のデータ分析５ - R言語のrlm関数でrobust linear regression</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2020/05/16/101506</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
