<?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言語のlm関数で、健康寿命を回帰分析してみます。 まず、na.omit関数でNAのないデータフレームを作成します。 yearとprefのlengthが47となっています。一つの調査年度だけということですね。 head関数ではじめの数行をみてみます。 2010年度ですね。 gdp: 県内総生産額やdoctor: 医師数などの変数をpop: 総人口で割って、人口当りの数字に変換します。mutate関数で可能です。 summary関数で平均値などを見てみます。gdpはそのまま人口で割りましたが、その他は1万人当りの数にしました。 gdp_p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.crosshyou.info%2Fentry%2F2021%2F02%2F27%2F094658&quot; title=&quot;都道府県別の健康寿命のデータの分析４ - R言語のlm関数で健康寿命を回帰分析する。経済的に豊かなほど、健康寿命は長い。 - 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/20210227/20210227084243.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-27 09:46:58</published>
  <title>都道府県別の健康寿命のデータの分析４ - R言語のlm関数で健康寿命を回帰分析する。経済的に豊かなほど、健康寿命は長い。</title>
  <type>rich</type>
  <url>https://www.crosshyou.info/entry/2021/02/27/094658</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
