<?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 前回の続きです。前回は昼夜人口比率と人口密度の関係を調べてみました、その結果、昼間の人口のほうが多い都市のほうが人口密度が低いことがわかりました。 今回は、昼夜人口比率と商品販売額の関係を調べてみましょう。前回は、dayという変数(これは昼間の人口が多い都市は1で、そうでない都市は0というダミー変数)を使いました。今回はdaynight(比率そのもの)を使ってみます。 まず、散布図を描いてみます。 daynightの値が大きいほど、hanbaiの値が大きい傾向のようです。 2つの数値データなので、cor.test()関数で相関関係の検定をしてみます。 p-…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2025%2F10%2F18%2F091326&quot; title=&quot;全国の主要都市の人口密度、昼夜人口比率、商品販売額、課税所得のデータの分析5 - 昼夜人口比率と商品販売額の関係 - 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/20251018/20251018082927.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-10-18 09:13:26</published>
  <title>全国の主要都市の人口密度、昼夜人口比率、商品販売額、課税所得のデータの分析5 - 昼夜人口比率と商品販売額の関係</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2025/10/18/091326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
