<?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 に引き続き、消費者物価指数のデータで遊びたいと思います。 前回の分析で各変数の推移をグラフにしましたが、いろいろな動きがありました。 そこで、今回はR言語で「総合」の消費者物価指数と一番相関の高い、低い、無相関の変数は何かを調べてみます。 前回までで作成したデータフレームを再掲します。 1列目が「年」の変数で、1970年から2017年までの48年間で、2列目以降が消費者物価指数の各変数ですね。2列目が「総合」です。 今回は、「総合」と各変数の相関を調べてみましょう。R言語のcor関数を使います。 例えば、「総合」と「食料」ならば、cor(DF_CPI3$総…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2018%2F10%2F31%2F123302&quot; title=&quot;消費者物価指数の分析３ - R言語のcor関数で相関係数を調べる - 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/20181031/20181031115445.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-31 12:33:02</published>
  <title>消費者物価指数の分析３ - R言語のcor関数で相関係数を調べる</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2018/10/31/123302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
